Compare commits

..

7 Commits

12 changed files with 3154 additions and 2095 deletions

10
.editorconfig Normal file
View File

@ -0,0 +1,10 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
[*.{js,ts,json,mts,css}]
indent_style = space
indent_size = 2

1
.envrc Normal file
View File

@ -0,0 +1 @@
use nix

14
.eslintrc.cjs Normal file
View File

@ -0,0 +1,14 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
}
}

View File

@ -19,13 +19,11 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Enable corepack and yarn
run: corepack enable
node-version: 20.x
- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Build with VitePress
run: yarn build
run: npm run build
- name: Deploy on the web
uses: appleboy/scp-action@v0.1.7
with:

View File

@ -15,7 +15,7 @@ const socialLinks = [
icon: {
svg: discordSvg,
},
link: 'https://alys.phundrak.com/discord',
link: 'https://discord.gg/mChDJQW',
},
];

View File

@ -92,17 +92,8 @@
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(
120deg,
#bd34fe 30%,
#41d1ff
);
--vp-home-hero-image-background-image: linear-gradient(
-45deg,
#bd34fe 50%,
#47caff 50%
);
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
--vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
--vp-home-hero-image-filter: blur(44px);
}

View File

@ -8,4 +8,4 @@ next: false
## Discord
La communauté ALYS est présente sur Discord ! Vous pouvez la rejoindre
via [ce lien](https://alys.phundrak.com/discord).
via [ce lien](https://discord.gg/mChDJQW).

48
misc/enter-shell-hook.sh Executable file
View File

@ -0,0 +1,48 @@
#!/bin/bash
# $1 subcommand
display_command() {
echo -e "\t{{ Bold (Color \"#00FF00\" \"npm $1\") }}" | gum format -t template
echo ''
}
# $1 emoji, $2 text, $3 subcommand
display_command_and_comment() {
echo "$1 {{ Italic \"$2\" }}" | gum format -t template | gum format -t emoji
display_command "$3"
echo ''
}
what_next() {
echo ''
display_command_and_comment ':rocket:' 'Run the project in development mode' 'run dev'
display_command_and_comment ':wrench:' 'Build the project' 'run build'
display_command_and_comment ':eyes:' 'Preview the built project' 'run preview'
echo ''
}
setup() {
gum spin --spinner dot --title 'Installing dependencies with npm' --show-output -- npm i
echo ':wrench: All your dependencies are now installed! You can now use any of the following commands:' | gum format -t emoji
what_next
}
just_info() {
echo ''
echo 'No problem, you can always run this command later do install them:'
display_command 'install'
echo ''
echo 'You will then be able to execute the following commands:'
what_next
}
echo ''
echo ':stars: Welcome to the {{ Bold "alys.phundrak.com" }} development environment!' | gum format -t template | gum format -t emoji
if [ -d "node_modules" ]; then
echo ':star2: Your dependencies are already installed I see!' | gum format -t emoji
echo ':wrench: You can now run the following commands to run the project:' | gum format -t emoji
what_next
elif gum confirm 'Would you like to install the NPM dependencies of the project right now?'; then
setup
else
just_info
fi

3059
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -6,10 +6,16 @@
"scripts": {
"dev": "vitepress dev docs",
"build": "vitepress build docs",
"preview": "vitepress preview docs"
"preview": "vitepress preview docs",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
"format": "prettier --write docs/.vitepress/"
},
"devDependencies": {
"vitepress": "^1.0.0-rc.45"
},
"packageManager": "yarn@4.1.1"
"vitepress": "^1.2.3",
"@rushstack/eslint-patch": "^1.8.0",
"@vue/eslint-config-prettier": "^9.0.0",
"eslint": "^8.57.0",
"eslint-plugin-vue": "^9.23.0",
"prettier": "^3.2.5"
}
}

View File

@ -1,9 +1,10 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [
corepack
nativeBuildInputs = with pkgs; [
nodejs_20
gum
];
shellHook = ''
yarn set version stable
bash misc/enter-shell-hook.sh
'';
}

2069
yarn.lock

File diff suppressed because it is too large Load Diff