Skip to content

Commit

Permalink
Add new url to matching url patterns in manifest.json and update form…
Browse files Browse the repository at this point in the history
…atting
  • Loading branch information
thieleju committed Jul 25, 2024
1 parent 477534d commit be8feeb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 20 deletions.
3 changes: 2 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Shows Win/Lose/Draw and average accuracy for players on chess.com",
"author": "thieleju",
"manifest_version": 3,
"version": "2.6.0",
"version": "2.6.1",
"permissions": ["activeTab", "scripting", "storage"],
"action": {
"default_locale": "en",
Expand All @@ -27,6 +27,7 @@
"https://*.chess.com/game/daily/*",
"https://*.chess.com/game/live/*",
"https://*.chess.com/live/game/*",
"https://*.chess.com/game/*",
"https://*.chess.com/analysis/game/live/*"
],
"js": ["src/scripts/insights.ts"]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chess-com-insights",
"private": true,
"version": "2.6.0",
"version": "2.6.1",
"type": "module",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import Options from "@/components/Options.vue";
import Options from "@/components/Options.vue"
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import App from "./App.vue"
import { createApp } from "vue"

// Plugins
// @ts-ignore
// @ts-expect-error Disable checking for types
import { registerPlugins } from "@/plugins"

const app = createApp(App)
Expand Down
32 changes: 16 additions & 16 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
import vue from "@vitejs/plugin-vue";
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify";
import vue from "@vitejs/plugin-vue"
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify"

import { crx } from "@crxjs/vite-plugin";
import { defineConfig } from "vite";
import { fileURLToPath, URL } from "node:url";
import { crx } from "@crxjs/vite-plugin"
import { defineConfig } from "vite"
import { fileURLToPath, URL } from "node:url"

// Node >=17
import manifest from "./manifest.json" assert { type: "json" };
import manifest from "./manifest.json" assert { type: "json" }

export default defineConfig({
plugins: [
vue({
template: { transformAssetUrls },
template: { transformAssetUrls }
}),
vuetify({
autoImport: true,
autoImport: true
}),
crx({
manifest: {
...manifest,
background: { ...manifest.background, type: "module" },
},
}),
background: { ...manifest.background, type: "module" }
}
})
],
define: { "process.env": {} },
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
"@": fileURLToPath(new URL("./src", import.meta.url))
},
extensions: [".js", ".json", ".jsx", ".mjs", ".ts", ".tsx", ".vue"],
extensions: [".js", ".json", ".jsx", ".mjs", ".ts", ".tsx", ".vue"]
},
server: {
port: 3000,
},
});
port: 3000
}
})

0 comments on commit be8feeb

Please sign in to comment.