Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
boid-com committed Dec 2, 2024
1 parent 9c93eb2 commit 57c1540
Show file tree
Hide file tree
Showing 13 changed files with 9,705 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.nuxt
.output
dist
node_modules
20 changes: 20 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
root: true,
extends: [
'@nuxt/eslint-config'
],
rules: {
// Global
semi: ['error', 'never'],
quotes: ['error', 'single'],
'quote-props': ['error', 'as-needed'],
// Vue
'vue/multi-word-component-names': 0,
'vue/max-attributes-per-line': 'off',
'vue/no-v-html': 0,
'vue/html-indent': ['error', 4],
'vue/script-indent': ['error', 4, { baseIndent: 0 }],
// Typescript
'@typescript-eslint/indent': ['error', 4],
}
}
60 changes: 60 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build and Deploy to Netlify

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: Install Playwright
run: npm install -D @playwright/test@latest

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Build Nuxt project
run: npm run generate

- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/


deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- name: Deploy to Netlify
run: |
npm install -g netlify-cli
netlify deploy --prod --dir=dist --site=$NETLIFY_SITE_ID --auth=$NETLIFY_AUTH_TOKEN
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
*.log*
.nuxt
.idea
.nitro
.cache
.output
.data
.env
dist
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": false,
"bracketSameLine": false,
"printWidth": 280
}
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog


## v0.0.1

[compare changes](https://github.com/bloggrify/demo-mistral/compare/v0.0.1...v0.0.1)

### 📖 Documentation

- Add information about deployment and some warnings about the file you should keep ([a09202d](https://github.com/bloggrify/demo-mistral/commit/a09202d))

### 🏡 Chore

- Upgrade dependency feat: add support for tags in the demo ([0ea280c](https://github.com/bloggrify/demo-mistral/commit/0ea280c))

### ❤️ Contributors

- Hlassiege <[email protected]>

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2013-present, Yuxi (Evan) You

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
71 changes: 71 additions & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
export default defineAppConfig({
logo: "/images/fiddlLogo.svg",
url: "https://fiddl.art/blog",

theme: "mistral",

// The name of the blog itself
name: "Fiddl.art Blog",
avatar: "/images/avatar.jpg",
// The description of the blog if any
description: "Fiddl.art blog is about AI art",
socials: {
twitter: "https://x.com/fiddlart",
youtube: "https://www.youtube.com/@fiddlart",
linkedin: "https://www.linkedin.com/company/fiddl-art",
facebook: "https://facebook.com/fiddlart",
instagram: "https://instagram.com/fiddl.art",

// possible values : 'facebook', 'twitter', 'linkedin', 'email', 'pinterest', 'reddit', 'pocket', 'whatsapp', 'telegram', 'skype'
// see https://github.com/stefanobartoletti/nuxt-social-share
// sharing_networks: ["facebook", "twitter", "linkedin", "email", "pinterest", "reddit", "pocket", "whatsapp", "telegram", "skype"],
sharing_networks: [],
},

newsletter: {
enabled: false,
form_action: "rssfeedpulse",
provider: "https://rssfeedpulse.com/api/campaign/996539cf-73e4-47b5-8d7c-2d7450174467/subscribe",
},

comments: {
enabled: false,
hyvor_talk: {
website_id: "10519", // Replace with your Hyvor Talk website ID (it won't work with this one)
},
},

table_of_contents: true,
authors: [
// {
// username: "hugo",
// default: true,
// name: "Hugo Lassiège",
// description: "Main maintainer of Bloggrify",
// avatar: "/images/avatar.jpeg",
// socials: {
// twitter: "https://twitter.com/hugolassiege",
// twitter_username: "hugolassiege",
// mastodon: "https://piaille.fr/@hugolassiege",
// youtube: "https://youtube.com/@eventuallycoding",
// linkedin: "https://www.linkedin.com/in/hugolassiege/",
// // facebook: 'https://facebook.com',
// // instagram: 'https://instagram.com',
// github: "https://github.com/hlassiege",
// },
// },
],

menu: () => [
{ name: "Home", path: "/" },
{ name: "Documentation", path: "/about" },
{ name: "Archives", path: "/archives" },
],

robots: [
{
UserAgent: "*",
Allow: ["/"],
},
],
})
14 changes: 14 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default defineNuxtConfig({
extends: ["@bloggrify/core", "@bloggrify/mistral"],

modules: ["nuxt-umami"],
umami: {
id: "a6295092-8b12-42b8-ab4c-de684673248d",
host: "https://umami.fiddl.animus.is",
autoTrack: true,
ignoreLocalhost: true,
},
app: {
baseURL: "/blog/",
},
})
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"private": true,
"name": "bloggrify-mistral-demo",
"type": "module",
"scripts": {
"preinstall": "npx playwright install --with-deps",
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"lint": "eslint ."
},
"dependencies": {
"@bloggrify/core": "1.8.0",
"@bloggrify/mistral": "1.2.3",
"nuxt": "3.14.1592",
"nuxt-umami": "^3.1.1"
},
"devDependencies": {
"@nuxt/eslint-config": "^0.7.1",
"@playwright/test": "^1.49.0",
"autoprefixer": "10.4.20",
"eslint": "9.16.0",
"sass": "1.81.0"
}
}
4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// https://v3.nuxtjs.org/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}
Loading

0 comments on commit 57c1540

Please sign in to comment.