-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
12 changed files
with
1,507 additions
and
107 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
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,42 +1,43 @@ | ||
import { | ||
DefaultTheme | ||
} from "vitepress"; | ||
import type { DefaultTheme } from "vitepress"; | ||
|
||
export const referenceSidebar: DefaultTheme.SidebarItem[] = [{ | ||
text: "Introduction", | ||
items: [{ | ||
text: 'Directory', | ||
link: '/reference/' | ||
}, | ||
] | ||
}, | ||
{ | ||
text: 'Plugins', | ||
items: [{ | ||
text: 'Custom CSS', | ||
link: '/reference/plugins/custom_css' | ||
}, | ||
{ | ||
text: '(WIP) Custom JS', | ||
link: '/reference/plugins/custom_js' | ||
}, | ||
{ | ||
text: '(WIP) Custom Workflow Nodes', | ||
link: '/reference/plugins/custom_workflow_nodes' | ||
} | ||
] | ||
}, | ||
{ | ||
text: 'SDKs', | ||
items: [ | ||
{ | ||
text: 'Backend', | ||
link: '/reference/sdks/backend_sdk', | ||
}, | ||
{ | ||
text: 'Frontend (WIP)', | ||
link: '/reference/sdks/frontend_sdk', | ||
}, | ||
] | ||
}, | ||
] | ||
export const referenceSidebar: DefaultTheme.SidebarItem[] = [ | ||
{ | ||
text: "Introduction", | ||
items: [ | ||
{ | ||
text: "Directory", | ||
link: "/reference/", | ||
}, | ||
], | ||
}, | ||
{ | ||
text: "Plugins", | ||
items: [ | ||
{ | ||
text: "Custom CSS", | ||
link: "/reference/plugins/custom_css", | ||
}, | ||
{ | ||
text: "(WIP) Custom JS", | ||
link: "/reference/plugins/custom_js", | ||
}, | ||
{ | ||
text: "(WIP) Custom Workflow Nodes", | ||
link: "/reference/plugins/custom_workflow_nodes", | ||
}, | ||
], | ||
}, | ||
{ | ||
text: "SDKs", | ||
items: [ | ||
{ | ||
text: "Backend", | ||
link: "/reference/sdks/backend_sdk", | ||
}, | ||
{ | ||
text: "Frontend (WIP)", | ||
link: "/reference/sdks/frontend_sdk", | ||
}, | ||
], | ||
}, | ||
]; |
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,13 +1,12 @@ | ||
import DefaultTheme from 'vitepress/theme' | ||
import './custom.css' | ||
|
||
import ProContainer from '../components/Pro.vue' | ||
import type { Theme } from 'vitepress' | ||
import DefaultTheme from "vitepress/theme"; | ||
import "./custom.css"; | ||
|
||
import ProContainer from "../components/Pro.vue"; | ||
import type { Theme } from "vitepress"; | ||
|
||
export default { | ||
extends: DefaultTheme, | ||
enhanceApp({ app }) { | ||
app.component('ProContainer', ProContainer) | ||
} | ||
} satisfies Theme | ||
app.component("ProContainer", ProContainer); | ||
}, | ||
} satisfies Theme; |
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,66 @@ | ||
import typescriptEslint from "typescript-eslint"; | ||
import vueEslintParser from "vue-eslint-parser"; | ||
import pluginVue from "eslint-plugin-vue"; | ||
import eslintjs from "@eslint/js"; | ||
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"; | ||
|
||
/** @type {import('eslint').Linter.Config } */ | ||
export default [ | ||
{ | ||
ignores: [".vitepress/cache"], | ||
}, | ||
eslintjs.configs.recommended, | ||
...typescriptEslint.configs.recommendedTypeChecked, | ||
eslintPluginPrettierRecommended, | ||
...pluginVue.configs["flat/recommended"], | ||
{ | ||
languageOptions: { | ||
parser: vueEslintParser, | ||
parserOptions: { | ||
parser: typescriptEslint.parser, | ||
project: "./tsconfig.json", | ||
extraFileExtensions: [".vue"], | ||
}, | ||
}, | ||
rules: { | ||
// Disabled | ||
"no-empty-pattern": "off", | ||
"@typescript-eslint/ban-ts-ignore": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-floating-promises": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/restrict-template-expressions": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-implied-eval": "off", | ||
"@typescript-eslint/unbound-method": "off", | ||
"@typescript-eslint/no-unused-expressions": "off", | ||
|
||
// Disabled for performance issues | ||
// Reference: https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/#eslint-plugin-import | ||
"import/namespace": "off", | ||
|
||
// Disable no-unused-vars and uses noUnusedLocals: true in tsconfig.json instead | ||
// Reference: https://github.com/johnsoncodehk/volar/issues/47 | ||
"@typescript-eslint/no-unused-vars": "off", | ||
|
||
// Enabled | ||
"sort-imports": [ | ||
"warn", | ||
{ | ||
ignoreCase: true, | ||
ignoreDeclarationSort: true, | ||
}, | ||
], | ||
|
||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/switch-exhaustiveness-check": "error", | ||
|
||
"vue/singleline-html-element-content-newline": "off", | ||
"vue/multi-word-component-names": "off", | ||
}, | ||
}, | ||
]; |
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 |
---|---|---|
|
@@ -7,11 +7,21 @@ | |
"dev": "vitepress dev", | ||
"build": "vitepress build", | ||
"preview": "vitepress preview", | ||
"lint": "markdownlint-cli2 'src/**/*.md'" | ||
"lint": "pnpm lint:js && pnpm lint:md", | ||
"lint:js": "ESLINT_ENV=production eslint ./.vitepress -c ./eslint.config.mjs --max-warnings 0", | ||
"lint:md": "markdownlint-cli2 'src/**/*.md'" | ||
}, | ||
"author": "Caido Labs Inc. <[email protected]>", | ||
"license": "CC-BY-4.0", | ||
"devDependencies": { | ||
"vitepress": "^1.2.2" | ||
"eslint": "9.10.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-prettier": "5.2.1", | ||
"eslint-plugin-vue": "9.27.0", | ||
"markdownlint-cli2": "0.14.0", | ||
"typescript": "5.6.2", | ||
"typescript-eslint": "8.5.0", | ||
"vitepress": "1.2.2", | ||
"vue-eslint-parser": "9.4.3" | ||
} | ||
} |
Oops, something went wrong.