(wip) aiscript highlighting

This commit is contained in:
kakkokari-gtyih 2023-11-07 01:21:48 +09:00
parent c555a762c9
commit dc0a8fb088
10 changed files with 87 additions and 16 deletions

0
locales/fr-FR.yml Normal file
View File

0
locales/id-ID.yml Normal file
View File

0
locales/it-IT.yml Normal file
View File

0
locales/ko-KR.yml Normal file
View File

0
locales/pl-PL.yml Normal file
View File

0
locales/zh-CN.yml Normal file
View File

0
locales/zh-TW.yml Normal file
View File

View File

@ -3,10 +3,12 @@ import ViteYaml from '@modyfi/vite-plugin-yaml';
import svgLoader from 'vite-svg-loader';
import genSitemap from './scripts/gen-sitemap';
import { genApiTranslationFiles } from './scripts/gen-api-translations';
import type { LocaleObject } from '@nuxtjs/i18n/dist/runtime/composables';
// 公開時のドメイン(末尾スラッシュなし)
const baseUrl = 'https://misskey-hub.net';
// 言語定義
export const locales = [
{ code: 'ja', iso: 'ja-JP', name: '日本語' },
{ code: 'en', iso: 'en-US', name: 'English' },
@ -17,7 +19,7 @@ export const locales = [
{ code: 'fr', iso: 'fr-FR', name: 'Français' },
{ code: 'cn', iso: 'zh-CN', name: '简体中文' },
{ code: 'tw', iso: 'zh-TW', name: '繁体中文' },
];
] as LocaleObject[];
export default defineNuxtConfig({
runtimeConfig: {
@ -52,7 +54,9 @@ export default defineNuxtConfig({
]
},
highlight: {
preload: ['ini',],
preload: [
'ini',
],
theme: {
// Default theme (same as single string)
default: 'github-light',

View File

@ -20,6 +20,7 @@
"@types/rellax": "^1.7.4",
"@types/three": "^0.153.0",
"@types/tinycolor2": "^1.4.3",
"aiscript-vscode": "github:aiscript-dev/aiscript-vscode#v0.0.5",
"autoprefixer": "^10.4.15",
"bootstrap": "^5.3.1",
"bootstrap-icons": "^1.10.5",

View File

@ -46,6 +46,9 @@ devDependencies:
'@types/tinycolor2':
specifier: ^1.4.3
version: 1.4.5
aiscript-vscode:
specifier: github:aiscript-dev/aiscript-vscode#v0.0.5
version: github.com/aiscript-dev/aiscript-vscode/a8fa5bb41885391cdb6a6e3165eaa6e4868da86e
autoprefixer:
specifier: ^10.4.15
version: 10.4.16(postcss@8.4.31)
@ -1255,7 +1258,7 @@ packages:
/@nuxt/content-edge@2.8.2-28233414.6d70135(vue@3.3.7):
resolution: {integrity: sha512-JBhIByJpVsIi/NJnNrNjiEWygP81K1CMaqOdhmSnPukYE+Mawp6CeYEsm2baYXKsLISAUDsC9h17JAxdVOJCRA==}
dependencies:
'@nuxt/kit': 3.8.0
'@nuxt/kit': 3.8.1
'@nuxtjs/mdc': 0.1.6
'@vueuse/head': 1.3.1(vue@3.3.7)
consola: 3.2.3
@ -1305,8 +1308,8 @@ packages:
nuxt: ^3.7.4
vite: '*'
dependencies:
'@nuxt/kit': 3.8.0
'@nuxt/schema': 3.8.0
'@nuxt/kit': 3.8.1
'@nuxt/schema': 3.8.1
execa: 7.2.0
nuxt: 3.8.0(@types/node@18.18.7)(sass@1.69.5)(typescript@5.2.2)(vite@4.5.0)
vite: 4.5.0(@types/node@18.18.7)(sass@1.69.5)
@ -1341,7 +1344,7 @@ packages:
'@antfu/utils': 0.7.6
'@nuxt/devtools-kit': 1.0.0(nuxt@3.8.0)(vite@4.5.0)
'@nuxt/devtools-wizard': 1.0.0
'@nuxt/kit': 3.8.0
'@nuxt/kit': 3.8.1
birpc: 0.2.14
consola: 3.2.3
destr: 2.0.2
@ -1374,7 +1377,7 @@ packages:
sirv: 2.0.3
unimport: 3.4.0(rollup@3.29.4)
vite: 4.5.0(@types/node@18.18.7)(sass@1.69.5)
vite-plugin-inspect: 0.7.41(@nuxt/kit@3.8.0)(vite@4.5.0)
vite-plugin-inspect: 0.7.41(@nuxt/kit@3.8.1)(vite@4.5.0)
vite-plugin-vue-inspector: 4.0.0(vite@4.5.0)
which: 3.0.1
ws: 8.14.2
@ -1426,6 +1429,33 @@ packages:
- supports-color
dev: true
/@nuxt/kit@3.8.1:
resolution: {integrity: sha512-DrhG1Z85iH68QOTkgfb0HVfM2g7+CfcMWrFWMDwck9ofyM2RXQUZyfmvMedwBnui1AjjpgpLO9078yZM+RqNUg==}
engines: {node: ^14.18.0 || >=16.10.0}
dependencies:
'@nuxt/schema': 3.8.1
c12: 1.5.1
consola: 3.2.3
defu: 6.1.3
globby: 13.2.2
hash-sum: 2.0.0
ignore: 5.2.4
jiti: 1.21.0
knitwork: 1.0.0
mlly: 1.4.2
pathe: 1.1.1
pkg-types: 1.0.3
scule: 1.0.0
semver: 7.5.4
ufo: 1.3.1
unctx: 2.3.1
unimport: 3.4.0(rollup@3.29.4)
untyped: 1.4.0
transitivePeerDependencies:
- rollup
- supports-color
dev: true
/@nuxt/schema@3.8.0:
resolution: {integrity: sha512-VEDVeCjdVowhoY5vIBSz94+SSwmM204jN6TNe/ShBJ2d/vZiy9EtLbhOwqaPNFHwnN1fl/XFHThwJiexdB9D1w==}
engines: {node: ^14.18.0 || >=16.10.0}
@ -1446,11 +1476,30 @@ packages:
- supports-color
dev: true
/@nuxt/schema@3.8.1:
resolution: {integrity: sha512-fSaWRcI/2mUskfTZTGSnH6Ny0x05CRzylbVn6WFV0d6UEKIVy42Qd6n+h7yoFfp4cq4nji6u16PT4SqS1DEhsw==}
engines: {node: ^14.18.0 || >=16.10.0}
dependencies:
'@nuxt/ui-templates': 1.3.1
consola: 3.2.3
defu: 6.1.3
hookable: 5.5.3
pathe: 1.1.1
pkg-types: 1.0.3
std-env: 3.4.3
ufo: 1.3.1
unimport: 3.4.0(rollup@3.29.4)
untyped: 1.4.0
transitivePeerDependencies:
- rollup
- supports-color
dev: true
/@nuxt/telemetry@2.5.2:
resolution: {integrity: sha512-kZ+rWq/5MZonMhp8KGFI5zMaR2VsiWpnlkOLJIuIX2WoJl0DkHvtxCtuFq2erAqMVruWLpKU+tgMC+1cno/QmA==}
hasBin: true
dependencies:
'@nuxt/kit': 3.8.0
'@nuxt/kit': 3.8.1
ci-info: 3.9.0
consola: 3.2.3
create-require: 1.1.1
@ -1459,7 +1508,7 @@ packages:
dotenv: 16.3.1
git-url-parse: 13.1.1
is-docker: 3.0.0
jiti: 1.20.0
jiti: 1.21.0
mri: 1.2.0
nanoid: 4.0.2
ofetch: 1.3.3
@ -1599,7 +1648,7 @@ packages:
/@nuxtjs/mdc@0.1.6:
resolution: {integrity: sha512-zJuq5KwU3d1Dlh1sudnpVtIFoap09ZrvO9IAM1iP4tipzSRkgHFbCOTMEmK17Rx7KSdmvBbFP+/4MBaJdj1NqQ==}
dependencies:
'@nuxt/kit': 3.8.0
'@nuxt/kit': 3.8.1
'@types/hast': 3.0.2
'@types/mdast': 4.0.2
'@vue/compiler-core': 3.3.7
@ -1721,6 +1770,7 @@ packages:
dependencies:
is-glob: 4.0.3
micromatch: 4.0.5
napi-wasm: 1.1.0
dev: true
bundledDependencies:
- napi-wasm
@ -2882,7 +2932,7 @@ packages:
defu: 6.1.3
dotenv: 16.3.1
giget: 1.1.3
jiti: 1.20.0
jiti: 1.21.0
mlly: 1.4.2
ohash: 1.1.3
pathe: 1.1.1
@ -4717,6 +4767,11 @@ packages:
hasBin: true
dev: true
/jiti@1.21.0:
resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==}
hasBin: true
dev: true
/js-cookie@3.0.5:
resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==}
engines: {node: '>=14'}
@ -4849,7 +4904,7 @@ packages:
get-port-please: 3.1.1
h3: 1.8.2
http-shutdown: 1.2.2
jiti: 1.20.0
jiti: 1.21.0
mlly: 1.4.2
node-forge: 1.3.1
pathe: 1.1.1
@ -5896,6 +5951,10 @@ packages:
hasBin: true
dev: false
/napi-wasm@1.1.0:
resolution: {integrity: sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg==}
dev: true
/negotiator@0.6.3:
resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==}
engines: {node: '>= 0.6'}
@ -5944,7 +6003,7 @@ packages:
hookable: 5.5.3
httpxy: 0.1.5
is-primitive: 3.0.1
jiti: 1.20.0
jiti: 1.21.0
klona: 2.0.6
knitwork: 1.0.0
listhen: 1.5.5
@ -8341,7 +8400,7 @@ packages:
'@babel/standalone': 7.23.2
'@babel/types': 7.23.0
defu: 6.1.3
jiti: 1.20.0
jiti: 1.21.0
mri: 1.2.0
scule: 1.0.0
transitivePeerDependencies:
@ -8508,7 +8567,7 @@ packages:
vscode-uri: 3.0.8
dev: true
/vite-plugin-inspect@0.7.41(@nuxt/kit@3.8.0)(vite@4.5.0):
/vite-plugin-inspect@0.7.41(@nuxt/kit@3.8.1)(vite@4.5.0):
resolution: {integrity: sha512-gASdFRO4CHDQF8qAk9LZEJyzlIJM4bFvDn7hz0e2r1PS6uq+yukd8+jHctOAbvCceQoTS5iDAgd4/mWcGWYoMw==}
engines: {node: '>=14'}
peerDependencies:
@ -8519,7 +8578,7 @@ packages:
optional: true
dependencies:
'@antfu/utils': 0.7.6
'@nuxt/kit': 3.8.0
'@nuxt/kit': 3.8.1
'@rollup/pluginutils': 5.0.5(rollup@3.29.4)
debug: 4.3.4
error-stack-parser-es: 0.1.1
@ -8929,3 +8988,10 @@ packages:
/zwitch@2.0.4:
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
dev: true
github.com/aiscript-dev/aiscript-vscode/a8fa5bb41885391cdb6a6e3165eaa6e4868da86e:
resolution: {tarball: https://codeload.github.com/aiscript-dev/aiscript-vscode/tar.gz/a8fa5bb41885391cdb6a6e3165eaa6e4868da86e}
name: aiscript-vscode
version: 0.0.5
engines: {vscode: ^1.83.0}
dev: true