diff --git a/plugins/angular.json b/plugins/angular.json index 96a24ab336..70e4e03d27 100644 --- a/plugins/angular.json +++ b/plugins/angular.json @@ -219,7 +219,10 @@ "build": { "builder": "@angular-devkit/build-angular:application", "options": { - "outputPath": "dist/apps/table-plugin", + "outputPath": { + "base": "dist/apps/table-plugin", + "browser": "" + }, "index": "apps/table-plugin/src/index.html", "browser": "apps/table-plugin/src/main.ts", "polyfills": ["zone.js"], @@ -227,6 +230,7 @@ "assets": [ "apps/table-plugin/src/_headers", "apps/table-plugin/src/favicon.ico", + "apps/table-plugin/src/manifest.json", "apps/table-plugin/src/assets" ], "styles": [ diff --git a/plugins/apps/table-plugin/package.json b/plugins/apps/table-plugin/package.json index 3ab829adc3..5626e57444 100644 --- a/plugins/apps/table-plugin/package.json +++ b/plugins/apps/table-plugin/package.json @@ -7,9 +7,9 @@ "build": "ng build table-plugin && pnpm run build:plugin", "build:dev": "ng build table-plugin --configuration development", "build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=table-plugin", - "build:plugin:watch": "node ../../tools/scripts/build-plugin.mjs --plugin=table-plugin --watch", + "watch": "node ../../tools/scripts/build-plugin.mjs --plugin=table-plugin --watch", "serve": "ng serve table-plugin", - "init": "concurrently --kill-others --names plugin,serve \"pnpm run build:plugin:watch\" \"pnpm run serve\"", + "init": "concurrently --kill-others --names plugin,serve \"pnpm run watch\" \"pnpm run serve\"", "lint": "eslint .", "test": "vitest" } diff --git a/plugins/apps/table-plugin/src/app/app.config.ts b/plugins/apps/table-plugin/src/app/app.config.ts index ed404941f7..8906e08a6d 100644 --- a/plugins/apps/table-plugin/src/app/app.config.ts +++ b/plugins/apps/table-plugin/src/app/app.config.ts @@ -1,7 +1,7 @@ import { ApplicationConfig } from '@angular/core'; -import { provideRouter } from '@angular/router'; +import { provideRouter, withHashLocation } from '@angular/router'; import { appRoutes } from './app.routes'; export const appConfig: ApplicationConfig = { - providers: [provideRouter(appRoutes)], + providers: [provideRouter(appRoutes, withHashLocation())], }; diff --git a/plugins/apps/table-plugin/src/index.html b/plugins/apps/table-plugin/src/index.html index 236a01d4cd..733094e78f 100644 --- a/plugins/apps/table-plugin/src/index.html +++ b/plugins/apps/table-plugin/src/index.html @@ -3,7 +3,6 @@ table-plugin - diff --git a/plugins/apps/table-plugin/src/manifest.json b/plugins/apps/table-plugin/src/manifest.json new file mode 100644 index 0000000000..69866a7a3a --- /dev/null +++ b/plugins/apps/table-plugin/src/manifest.json @@ -0,0 +1,8 @@ +{ + "name": "Table plugin", + "description": "Table plugin to import or create tables", + "version": 2, + "code": "assets/plugin.js", + "icon": "assets/icon.png", + "permissions": ["content:read", "content:write"] +} diff --git a/plugins/apps/table-plugin/vite.config.ts b/plugins/apps/table-plugin/vite.config.ts new file mode 100644 index 0000000000..1d8987ca76 --- /dev/null +++ b/plugins/apps/table-plugin/vite.config.ts @@ -0,0 +1,6 @@ +/// +import { defineConfig } from 'vite'; + +export default defineConfig({ + root: './', +});