script:sync
This commit is contained in:
parent
1538f905ec
commit
be5f321bac
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"_variables": {
|
"_variables": {
|
||||||
"lastUpdateCheck": 1740681917455
|
"lastUpdateCheck": 1741718719942
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -12,7 +12,7 @@ export default defineConfig({
|
|||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
i18n: {
|
i18n: {
|
||||||
locales: ["es", "en", "de", "fr", "it", "ar", "ja", "zh", "nl", "it"],
|
locales: ["es", "en", "de", "fr", "it", "ar", "ja", "zh", "nl", "it", "pt"],
|
||||||
defaultLocale: "en",
|
defaultLocale: "en",
|
||||||
},
|
},
|
||||||
vite: {
|
vite: {
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
export default {
|
export default {
|
||||||
"environment": "build",
|
"environment": "dev",
|
||||||
"isSsrBuild": false,
|
"isSsrBuild": false,
|
||||||
"projectBase": "",
|
"projectBase": "",
|
||||||
"publicDir": "C:\\Users\\zx\\Desktop\\polymech\\polymech-site\\public\\",
|
"publicDir": "C:\\Users\\zx\\Desktop\\polymech\\polymech-site\\public\\",
|
||||||
"rootDir": "C:\\Users\\zx\\Desktop\\polymech\\polymech-site\\",
|
"rootDir": "C:\\Users\\zx\\Desktop\\polymech\\polymech-site\\",
|
||||||
"mode": "production",
|
"mode": "dev",
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"assetsDir": "/_astro",
|
"assetsDir": "/_astro",
|
||||||
"sourcemap": false,
|
"sourcemap": false,
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
osr-sync sync --logLevel=debug --clear=false --source='.' --target='../astro-playground' --debug=false --profile="./sync-playground.json"
|
osr-sync sync --logLevel=debug --clear=false --source='.' --target='../../polycraft/resources' --debug=false --profile="./sync-polycraft.json"
|
||||||
cd ../astro-playground
|
cd ../../polycraft/resources
|
||||||
git add -A .
|
git add -A .
|
||||||
git commit -m "Synced from site"
|
git commit -m "Synced from site"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
# osr-sync sync --logLevel=debug --clear=false --source='.' --target='../guides' --debug=false --profile="./sync-playground.json"
|
|
||||||
#cd ../guides
|
|
||||||
#git add .
|
|
||||||
#git commit -m "Synced from site"
|
|
||||||
#git push
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ export const OSR_ROOT = () => path.resolve(resolve("${OSR_ROOT}"))
|
|||||||
export const LOGGING_NAMESPACE = 'polymech-site'
|
export const LOGGING_NAMESPACE = 'polymech-site'
|
||||||
export const TRANSLATE_CONTENT = true
|
export const TRANSLATE_CONTENT = true
|
||||||
export const LANGUAGES = ['en', 'ar', 'de', 'ja', 'es', 'zh', 'fr']
|
export const LANGUAGES = ['en', 'ar', 'de', 'ja', 'es', 'zh', 'fr']
|
||||||
export const LANGUAGES_PROD = ['en', 'es', 'ar', 'de', 'ja', 'zh', 'fr', 'nl', 'it']
|
export const LANGUAGES_PROD = ['en', 'es', 'ar', 'de', 'ja', 'zh', 'fr', 'nl', 'it', 'pt']
|
||||||
export const isRTL = (lang) => lang === 'ar'
|
export const isRTL = (lang) => lang === 'ar'
|
||||||
|
|
||||||
// i18n constants
|
// i18n constants
|
||||||
|
|||||||
@ -23,9 +23,7 @@ const navItems = await items({ locale });
|
|||||||
title={item.title}
|
title={item.title}
|
||||||
aria-label={item.ariaLabel}
|
aria-label={item.ariaLabel}
|
||||||
class={item.class}
|
class={item.class}
|
||||||
>
|
>{item.title}</a>
|
||||||
{item.title}
|
|
||||||
</a>
|
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"debug": true,
|
|
||||||
"matching": [
|
|
||||||
"src/**",
|
|
||||||
"*.md",
|
|
||||||
"*.json",
|
|
||||||
"*.cjs",
|
|
||||||
"docs",
|
|
||||||
"packages/imagetools/**",
|
|
||||||
"scripts",
|
|
||||||
"meta/**",
|
|
||||||
"tests/**",
|
|
||||||
"*.mjs",
|
|
||||||
"!node_modules/**",
|
|
||||||
"!ref/**"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
TEST,TEST
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"glossaryId": "f04bcbac-7e65-4b85-85d2-43c5f1b6d92d",
|
|
||||||
"name": "OSR-en-it",
|
|
||||||
"ready": true,
|
|
||||||
"sourceLang": "en",
|
|
||||||
"targetLang": "it",
|
|
||||||
"creationTime": "2025-03-11T11:40:50.206Z",
|
|
||||||
"entryCount": 1,
|
|
||||||
"hash": "zDrlayXO43sB98wNoqof0g=="
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
TEST,TEST
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"glossaryId": "84421f37-6cff-40d1-8885-e85d7ff59c2f",
|
|
||||||
"name": "OSR-en-nl",
|
|
||||||
"ready": true,
|
|
||||||
"sourceLang": "en",
|
|
||||||
"targetLang": "nl",
|
|
||||||
"creationTime": "2025-03-11T10:43:47.516Z",
|
|
||||||
"entryCount": 1,
|
|
||||||
"hash": "zDrlayXO43sB98wNoqof0g=="
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user