generated from halo-dev/plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feature/telemetry
- Loading branch information
Showing
24 changed files
with
5,520 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1alpha1 | ||
kind: Role | ||
metadata: | ||
name: template-feed-public-apis | ||
labels: | ||
halo.run/role-template: "true" | ||
halo.run/hidden: "true" | ||
rbac.authorization.halo.run/aggregate-to-anonymous: "true" | ||
annotations: | ||
rbac.authorization.halo.run/display-name: "获取订阅源列表" | ||
rules: | ||
- apiGroups: [ "api.feed.halo.run" ] | ||
resources: [ "rss-sources" ] | ||
verbs: [ "list" ] |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ rootProject.name = 'plugin-feed' | |
|
||
include 'api' | ||
include 'app' | ||
include 'ui' |
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,12 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = false | ||
insert_final_newline = true |
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,23 @@ | ||
/* eslint-env node */ | ||
require("@rushstack/eslint-patch/modern-module-resolution"); | ||
|
||
module.exports = { | ||
root: true, | ||
extends: [ | ||
"plugin:vue/vue3-recommended", | ||
"eslint:recommended", | ||
"@vue/eslint-config-typescript/recommended", | ||
"@vue/eslint-config-prettier", | ||
"@unocss", | ||
], | ||
env: { | ||
node: true, | ||
"vue/setup-compiler-macros": true, | ||
}, | ||
rules: { | ||
"vue/no-v-html": "off", | ||
"vue/no-deprecated-slot-attribute": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-explicit-any": "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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
.DS_Store | ||
dist | ||
dist-ssr | ||
coverage | ||
*.local | ||
|
||
/cypress/videos/ | ||
/cypress/screenshots/ | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
*.tsbuildinfo |
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,23 @@ | ||
plugins { | ||
id "com.github.node-gradle.node" version "7.1.0" | ||
} | ||
|
||
tasks.register('clean', Delete) { | ||
delete layout.buildDirectory | ||
} | ||
|
||
tasks.register('build', PnpmTask) { | ||
group = 'build' | ||
description = 'Build console.' | ||
dependsOn tasks.named('pnpmInstall') | ||
pnpmCommand = ['run', 'build'] | ||
inputs.dir('src') | ||
inputs.files(fileTree('node_modules').exclude('.cache')) | ||
inputs.files(layout.projectDirectory.asFile.listFiles({ pathname -> | ||
pathname.name.endsWithAny(".json", ".yaml", ".env", ".ts", ".json") | ||
} as FileFilter)) | ||
outputs.dir(layout.buildDirectory.dir('dist')) | ||
configure { | ||
shouldRunAfter tasks.named('clean') | ||
} | ||
} |
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,29 @@ | ||
/// <reference types="vite/client" /> | ||
/// <reference types="unplugin-icons/types/vue" /> | ||
/// <reference types="vue-i18n/dist/vue-i18n.d.ts" /> | ||
|
||
export {}; | ||
|
||
declare module "axios" { | ||
export interface AxiosRequestConfig { | ||
mute?: boolean; | ||
} | ||
} | ||
|
||
declare module "*.vue" { | ||
import type { ComponentOptions } from "vue"; | ||
const Component: ComponentOptions; | ||
export default Component; | ||
} | ||
|
||
declare module "*.md" { | ||
import type { ComponentOptions } from "vue"; | ||
const Component: ComponentOptions; | ||
export default Component; | ||
} | ||
|
||
declare module "vue" { | ||
interface ComponentCustomProperties { | ||
$formkit: any; | ||
} | ||
} |
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,45 @@ | ||
{ | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite build --watch --mode=development", | ||
"build": "vite build", | ||
"test-unit": "vitest --environment jsdom --run", | ||
"type-check": "vue-tsc -p tsconfig.app.json --noEmit", | ||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", | ||
"prettier": "prettier --write src/" | ||
}, | ||
"dependencies": { | ||
"@halo-dev/api-client": "^2.20.0", | ||
"@halo-dev/components": "^2.20.0", | ||
"@halo-dev/console-shared": "^2.20.0", | ||
"@tanstack/vue-query": "^4.37.1", | ||
"axios": "^1.7.9", | ||
"vue": "^3.5.13", | ||
"vue-router": "^4.5.0" | ||
}, | ||
"devDependencies": { | ||
"@halo-dev/ui-plugin-bundler-kit": "^2.20.0", | ||
"@rushstack/eslint-patch": "^1.10.4", | ||
"@tsconfig/node18": "^2.0.1", | ||
"@types/jsdom": "^20.0.1", | ||
"@types/node": "^18.19.67", | ||
"@unocss/eslint-config": "^0.61.9", | ||
"@vitejs/plugin-vue": "^5.2.1", | ||
"@vue/eslint-config-prettier": "^9.0.0", | ||
"@vue/eslint-config-typescript": "^11.0.3", | ||
"@vue/test-utils": "^2.4.6", | ||
"@vue/tsconfig": "^0.4.0", | ||
"eslint": "^8.57.1", | ||
"eslint-plugin-vue": "^9.32.0", | ||
"jsdom": "^19.0.0", | ||
"prettier": "^3.4.2", | ||
"prettier-plugin-organize-imports": "^4.1.0", | ||
"sass": "^1.82.0", | ||
"typescript": "~5.5.4", | ||
"unocss": "^0.61.9", | ||
"vite": "^5.4.11", | ||
"vitest": "^0.34.6", | ||
"vue-tsc": "^2.1.10" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.