diff --git a/.prettierrc.cjs b/.prettierrc.cjs deleted file mode 100644 index f0355a9..0000000 --- a/.prettierrc.cjs +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@lobehub/lint').prettier; diff --git a/.remarkrc.cjs b/.remarkrc.cjs deleted file mode 100644 index 40c354b..0000000 --- a/.remarkrc.cjs +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@lobehub/lint').remarklint; \ No newline at end of file diff --git a/meta.json b/meta.json index c42f422..4d7ca24 100644 --- a/meta.json +++ b/meta.json @@ -1,3 +1 @@ -{ - "schemaVersion": 1 -} +{ "schemaVersion": 1 } diff --git a/scripts/const.ts b/scripts/const.ts index a25c923..1c386d2 100644 --- a/scripts/const.ts +++ b/scripts/const.ts @@ -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 = ""; +export const readmeSplit = ''; -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'); diff --git a/src/ShoppingTools.json b/src/ShoppingTools.json index 2c73735..2020131 100644 --- a/src/ShoppingTools.json +++ b/src/ShoppingTools.json @@ -9,7 +9,7 @@ "description": "Search for products on eBay & AliExpress, find eBay events & coupons. Get prompt examples.", "tags": ["shopping", "e-bay", "ali-express", "coupons"], "title": "Shopping tools", - "category": "web-search" + "category": "tools" }, "schemaVersion": 1 } diff --git a/src/seo_assistant.json b/src/seo_assistant.json index 5b30612..95a3b62 100644 --- a/src/seo_assistant.json +++ b/src/seo_assistant.json @@ -9,7 +9,7 @@ "description": "The SEO Assistant can generate search engine keyword information in order to aid the creation of content.", "tags": ["seo", "keyword"], "title": "SEO Assistant", - "category": "media-generate" + "category": "web-search" }, "schemaVersion": 1 }