Skip to content

Commit ec378b8

Browse files
committed
initial commit
1 parent 917e154 commit ec378b8

39 files changed

+981
-2
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
1-
# custom-html-in-pages
2-
Custom HTML in Pages
1+
# Static HTML in Pages (static_html_in_page)
2+
3+
Chrome Extension
4+
5+
## Install the dependencies
6+
```bash
7+
yarn install
8+
```
9+
10+
### Start the app in development mode (hot-code reloading, error reporting, etc.)
11+
```bash
12+
quasar dev -m bex
13+
```
14+
15+
16+
### Build the app for production
17+
```bash
18+
quasar build -m bex
19+
```
20+
21+
### Customize the configuration
22+
See [Configuring quasar.conf.js](https://quasar.dev/quasar-cli/quasar-conf-js).

babel.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
module.exports = api => {
4+
return {
5+
presets: [
6+
[
7+
'@quasar/babel-preset-app',
8+
api.caller(caller => caller && caller.target === 'node')
9+
? { targets: { node: 'current' } }
10+
: {}
11+
]
12+
]
13+
}
14+
}
15+

package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "custom_html_in_pages",
3+
"version": "1.0.0",
4+
"description": "Chrome Extension",
5+
"productName": "Custom HTML in Pages",
6+
"author": "Anant Negi <anantnegi8@gmail.com>",
7+
"private": true,
8+
"scripts": {
9+
"test": "echo \"No test specified\" && exit 0"
10+
},
11+
"dependencies": {
12+
"@quasar/extras": "^1.0.0",
13+
"core-js": "^3.6.5",
14+
"quasar": "^2.0.0",
15+
"vue-i18n": "^9.0.0"
16+
},
17+
"devDependencies": {
18+
"@quasar/app": "^3.0.0",
19+
"@types/node": "^12.20.21"
20+
},
21+
"browserslist": [
22+
"last 10 Chrome versions",
23+
"last 10 Firefox versions",
24+
"last 4 Edge versions",
25+
"last 7 Safari versions",
26+
"last 8 Android versions",
27+
"last 8 ChromeAndroid versions",
28+
"last 8 FirefoxAndroid versions",
29+
"last 10 iOS versions",
30+
"last 5 Opera versions"
31+
],
32+
"engines": {
33+
"node": ">= 12.22.1",
34+
"npm": ">= 6.13.4",
35+
"yarn": ">= 1.21.1"
36+
}
37+
}

public/favicon.ico

63 KB
Binary file not shown.

public/icons/favicon-128x128.png

12 KB
Loading

public/icons/favicon-16x16.png

859 Bytes
Loading

public/icons/favicon-32x32.png

1.99 KB
Loading

public/icons/favicon-96x96.png

9.42 KB
Loading

quasar.conf.js

Lines changed: 225 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
/*
2+
* This file runs in a Node context (it's NOT transpiled by Babel), so use only
3+
* the ES6 features that are supported by your Node version. https://node.green/
4+
*/
5+
6+
// Configuration for your app
7+
// https://quasar.dev/quasar-cli/quasar-conf-js
8+
9+
const { configure } = require('quasar/wrappers');
10+
11+
module.exports = configure(function (ctx) {
12+
return {
13+
// https://quasar.dev/quasar-cli/supporting-ts
14+
supportTS: true,
15+
16+
// https://quasar.dev/quasar-cli/prefetch-feature
17+
// preFetch: true,
18+
19+
// app boot file (/src/boot)
20+
// --> boot files are part of "main.js"
21+
// https://quasar.dev/quasar-cli/boot-files
22+
boot: [
23+
'i18n',
24+
],
25+
26+
// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
27+
css: [
28+
'app.scss'
29+
],
30+
31+
// https://github.com/quasarframework/quasar/tree/dev/extras
32+
extras: [
33+
// 'ionicons-v4',
34+
// 'mdi-v5',
35+
// 'fontawesome-v5',
36+
// 'eva-icons',
37+
// 'themify',
38+
// 'line-awesome',
39+
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
40+
41+
'roboto-font', // optional, you are not bound to it
42+
'material-icons', // optional, you are not bound to it
43+
],
44+
45+
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
46+
build: {
47+
vueRouterMode: 'hash', // available values: 'hash', 'history'
48+
49+
// transpile: false,
50+
// publicPath: '/',
51+
52+
// Add dependencies for transpiling with Babel (Array of string/regex)
53+
// (from node_modules, which are by default not transpiled).
54+
// Applies only if "transpile" is set to true.
55+
// transpileDependencies: [],
56+
57+
// rtl: true, // https://quasar.dev/options/rtl-support
58+
// preloadChunks: true,
59+
// showProgress: false,
60+
// gzip: true,
61+
// analyze: true,
62+
63+
// Options below are automatically set depending on the env, set them if you want to override
64+
// extractCSS: false,
65+
66+
// https://quasar.dev/quasar-cli/handling-webpack
67+
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
68+
chainWebpack (/* chain */) {
69+
//
70+
},
71+
},
72+
73+
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
74+
devServer: {
75+
server: {
76+
type: 'https'
77+
},
78+
port: 8080,
79+
open: true // opens browser window automatically
80+
},
81+
82+
// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
83+
framework: {
84+
config: {},
85+
86+
// iconSet: 'material-icons', // Quasar icon set
87+
// lang: 'en-US', // Quasar language pack
88+
89+
// For special cases outside of where the auto-import strategy can have an impact
90+
// (like functional components as one of the examples),
91+
// you can manually specify Quasar components/directives to be available everywhere:
92+
//
93+
// components: [],
94+
// directives: [],
95+
96+
// Quasar plugins
97+
plugins: [
98+
'Notify',
99+
'LocalStorage'
100+
]
101+
},
102+
103+
// animations: 'all', // --- includes all animations
104+
// https://quasar.dev/options/animations
105+
animations: [],
106+
107+
// https://quasar.dev/quasar-cli/developing-ssr/configuring-ssr
108+
ssr: {
109+
pwa: false,
110+
111+
// manualStoreHydration: true,
112+
// manualPostHydrationTrigger: true,
113+
114+
prodPort: 3000, // The default port that the production server should use
115+
// (gets superseded if process.env.PORT is specified at runtime)
116+
117+
maxAge: 1000 * 60 * 60 * 24 * 30,
118+
// Tell browser when a file from the server should expire from cache (in ms)
119+
120+
chainWebpackWebserver (/* chain */) {
121+
//
122+
},
123+
124+
middlewares: [
125+
ctx.prod ? 'compression' : '',
126+
'render' // keep this as last one
127+
]
128+
},
129+
130+
// https://quasar.dev/quasar-cli/developing-pwa/configuring-pwa
131+
pwa: {
132+
workboxPluginMode: 'GenerateSW', // 'GenerateSW' or 'InjectManifest'
133+
workboxOptions: {}, // only for GenerateSW
134+
135+
// for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts])
136+
// if using workbox in InjectManifest mode
137+
chainWebpackCustomSW (/* chain */) {
138+
//
139+
},
140+
141+
manifest: {
142+
name: `Static HTML in Pages`,
143+
short_name: `Static HTML in Pages`,
144+
description: `Chrome Extension`,
145+
display: 'standalone',
146+
orientation: 'portrait',
147+
background_color: '#ffffff',
148+
theme_color: '#027be3',
149+
icons: [
150+
{
151+
src: 'icons/icon-128x128.png',
152+
sizes: '128x128',
153+
type: 'image/png'
154+
},
155+
{
156+
src: 'icons/icon-192x192.png',
157+
sizes: '192x192',
158+
type: 'image/png'
159+
},
160+
{
161+
src: 'icons/icon-256x256.png',
162+
sizes: '256x256',
163+
type: 'image/png'
164+
},
165+
{
166+
src: 'icons/icon-384x384.png',
167+
sizes: '384x384',
168+
type: 'image/png'
169+
},
170+
{
171+
src: 'icons/icon-512x512.png',
172+
sizes: '512x512',
173+
type: 'image/png'
174+
}
175+
]
176+
}
177+
},
178+
179+
// Full list of options: https://quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
180+
cordova: {
181+
// noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
182+
},
183+
184+
// Full list of options: https://quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
185+
capacitor: {
186+
hideSplashscreen: true
187+
},
188+
189+
// Full list of options: https://quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
190+
electron: {
191+
bundler: 'packager', // 'packager' or 'builder'
192+
193+
packager: {
194+
// https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
195+
196+
// OS X / Mac App Store
197+
// appBundleId: '',
198+
// appCategoryType: '',
199+
// osxSign: '',
200+
// protocol: 'myapp://path',
201+
202+
// Windows only
203+
// win32metadata: { ... }
204+
},
205+
206+
builder: {
207+
// https://www.electron.build/configuration/configuration
208+
209+
appId: 'static_html_in_page'
210+
},
211+
212+
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
213+
chainWebpack (/* chain */) {
214+
// do something with the Electron main process Webpack cfg
215+
// extendWebpackMain also available besides this chainWebpackMain
216+
},
217+
218+
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
219+
chainWebpackPreload (/* chain */) {
220+
// do something with the Electron main process Webpack cfg
221+
// extendWebpackPreload also available besides this chainWebpackPreload
222+
},
223+
}
224+
}
225+
});

src-bex/bex-flag.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* eslint-disable */
2+
// THIS FEATURE-FLAG FILE IS AUTOGENERATED,
3+
// REMOVAL OR CHANGES WILL CAUSE RELATED TYPES TO STOP WORKING
4+
import "quasar/dist/types/feature-flag";
5+
6+
declare module "quasar/dist/types/feature-flag" {
7+
interface QuasarFeatureFlags {
8+
bex: true;
9+
}
10+
}

0 commit comments

Comments
 (0)