-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 chore: Auto format and add i18n json files
- Loading branch information
1 parent
8d534ed
commit 34c1e6e
Showing
6 changed files
with
27 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{ | ||
"schemaVersion": 1 | ||
} | ||
{ "schemaVersion": 1 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,40 @@ | ||
import { readdirSync } from "node:fs"; | ||
import { resolve } from "node:path"; | ||
import { readJSONSync } from 'fs-extra'; | ||
import { readdirSync } from 'node:fs'; | ||
import { resolve } from 'node:path'; | ||
|
||
import { readJSONSync } from "fs-extra"; | ||
export const root = resolve(__dirname, '..'); | ||
|
||
export const root = resolve(__dirname, ".."); | ||
|
||
export const pluginsDir = resolve(root, "./src"); | ||
export const localesDir = resolve(root, "./locales"); | ||
export const publicDir = resolve(root, "public"); | ||
export const pluginsDir = resolve(root, './src'); | ||
export const localesDir = resolve(root, './locales'); | ||
export const publicDir = resolve(root, 'public'); | ||
|
||
export const plugins = readdirSync(pluginsDir, { withFileTypes: true }); | ||
export const pluginLocales = readdirSync(localesDir, { withFileTypes: true }); | ||
|
||
export const templatePath = resolve(root, "plugin-template.json"); | ||
export const templatePath = resolve(root, 'plugin-template.json'); | ||
|
||
export const indexPath = resolve(publicDir, "index.json"); | ||
export const indexCnPath = resolve(publicDir, "index.zh-CN.json"); | ||
export const indexPath = resolve(publicDir, 'index.json'); | ||
export const indexCnPath = resolve(publicDir, 'index.zh-CN.json'); | ||
|
||
export const readmePath = resolve(root, "README.md"); | ||
export const readmeCnPath = resolve(root, "README.zh-CN.md"); | ||
export const readmePath = resolve(root, 'README.md'); | ||
export const readmeCnPath = resolve(root, 'README.zh-CN.md'); | ||
|
||
export const metaPath = resolve(root, "meta.json"); | ||
export const metaPath = resolve(root, 'meta.json'); | ||
export const meta = readJSONSync(metaPath); | ||
|
||
export const readmeSplit = "<!-- AWESOME PLUGINS -->"; | ||
export const readmeSplit = '<!-- AWESOME PLUGINS -->'; | ||
|
||
export const SYNC_URL = "https://openai-collections.chat-plugin.lobehub.com"; | ||
export const SYNC_URL = 'https://openai-collections.chat-plugin.lobehub.com'; | ||
|
||
export const category = [ | ||
"gaming-entertainment", | ||
"lifestyle", | ||
"media-generate", | ||
"science-education", | ||
"social", | ||
"stocks-finance", | ||
"tools", | ||
"web-search", | ||
'gaming-entertainment', | ||
'lifestyle', | ||
'media-generate', | ||
'science-education', | ||
'social', | ||
'stocks-finance', | ||
'tools', | ||
'web-search', | ||
]; | ||
|
||
export const config = require("../.i18nrc.js"); | ||
export const config = require('../.i18nrc.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters