Skip to content

Commit

Permalink
🤖 chore: Auto format and add i18n json files
Browse files Browse the repository at this point in the history
  • Loading branch information
lobehubbot committed Dec 15, 2024
1 parent 8d534ed commit 34c1e6e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 32 deletions.
1 change: 0 additions & 1 deletion .prettierrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion .remarkrc.cjs

This file was deleted.

4 changes: 1 addition & 3 deletions meta.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
"schemaVersion": 1
}
{ "schemaVersion": 1 }
49 changes: 24 additions & 25 deletions scripts/const.ts
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');
2 changes: 1 addition & 1 deletion src/ShoppingTools.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion src/seo_assistant.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 34c1e6e

Please sign in to comment.