-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64debd6
commit 8d534ed
Showing
18 changed files
with
141 additions
and
104 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@lobehub/lint').prettier; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@lobehub/lint').semanticRelease; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@lobehub/lint').remarklint; |
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
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
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,41 @@ | ||
import { readdirSync } from 'node:fs'; | ||
import { resolve } from 'node:path'; | ||
import { readdirSync } from "node:fs"; | ||
import { resolve } from "node:path"; | ||
|
||
import { readJSON } from './utils'; | ||
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 meta = readJSON(metaPath); | ||
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
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
Oops, something went wrong.