Skip to content

Commit 7b3ef60

Browse files
authored
Merge pull request #10 from oslabs-beta/tree-update
Vue3Tree added, able to dynamically re-render
2 parents fc1e478 + 9aaec24 commit 7b3ef60

17 files changed

+1812
-18057
lines changed

package-lock.json

Lines changed: 728 additions & 17318 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"vue-draggable-resizable": "^2.3.0",
3535
"vue-multiselect": "^3.0.0-alpha.1",
3636
"vue-prism-editor": "^2.0.0-alpha.2",
37+
"vue3-tree": "^0.10.0",
3738
"vued3tree": "^5.1.0",
3839
"vuex": "^4.0.1"
3940
},

quasar.conf.js

Lines changed: 65 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
// https://quasar.dev/quasar-cli/quasar-conf-js
88

99
/* eslint-env node */
10-
const ESLintPlugin = require('eslint-webpack-plugin')
11-
const { configure } = require('quasar/wrappers');
10+
const ESLintPlugin = require("eslint-webpack-plugin");
11+
const { configure } = require("quasar/wrappers");
1212

1313
module.exports = configure(function (ctx) {
1414
const env = ctx.dev
15-
? require("quasar-dotenv").config({ path: '.env.development' })
16-
: require("quasar-dotenv").config()
15+
? require("quasar-dotenv").config({ path: ".env.development" })
16+
: require("quasar-dotenv").config();
1717

1818
return {
1919
// https://quasar.dev/quasar-cli/supporting-ts
@@ -25,13 +25,10 @@ module.exports = configure(function (ctx) {
2525
// app boot file (/src/boot)
2626
// --> boot files are part of "main.js"
2727
// https://quasar.dev/quasar-cli/boot-files
28-
boot: [
29-
],
28+
boot: [],
3029

3130
// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
32-
css: [
33-
'app.scss'
34-
],
31+
css: ["app.scss"],
3532

3633
// https://github.com/quasarframework/quasar/tree/dev/extras
3734
extras: [
@@ -43,13 +40,13 @@ module.exports = configure(function (ctx) {
4340
// 'line-awesome',
4441
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
4542

46-
'roboto-font', // optional, you are not bound to it
47-
'material-icons', // optional, you are not bound to it
43+
"roboto-font", // optional, you are not bound to it
44+
"material-icons", // optional, you are not bound to it
4845
],
4946

5047
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
5148
build: {
52-
vueRouterMode: 'history', // available values: 'hash', 'history'
49+
vueRouterMode: "history", // available values: 'hash', 'history'
5350
env: env,
5451
// Potential fix for fs errors
5552
// extendWebpack(cfg) {
@@ -90,10 +87,10 @@ module.exports = configure(function (ctx) {
9087
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
9188
devServer: {
9289
server: {
93-
type: 'http'
90+
type: "http",
9491
},
9592
port: 8080,
96-
open: true // opens browser window automatically
93+
open: true, // opens browser window automatically
9794
},
9895

9996
// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
@@ -111,7 +108,7 @@ module.exports = configure(function (ctx) {
111108
// directives: [],
112109

113110
// Quasar plugins
114-
plugins: []
111+
plugins: [],
115112
},
116113

117114
// animations: 'all', // --- includes all animations
@@ -126,70 +123,72 @@ module.exports = configure(function (ctx) {
126123
// manualPostHydrationTrigger: true,
127124

128125
prodPort: 3000, // The default port that the production server should use
129-
// (gets superseded if process.env.PORT is specified at runtime)
126+
// (gets superseded if process.env.PORT is specified at runtime)
130127

131128
maxAge: 1000 * 60 * 60 * 24 * 30,
132-
// Tell browser when a file from the server should expire from cache (in ms)
129+
// Tell browser when a file from the server should expire from cache (in ms)
133130

134-
chainWebpackWebserver (chain) {
135-
chain.plugin('eslint-webpack-plugin')
136-
.use(ESLintPlugin, [{ extensions: [ 'js' ] }])
131+
chainWebpackWebserver(chain) {
132+
chain
133+
.plugin("eslint-webpack-plugin")
134+
.use(ESLintPlugin, [{ extensions: ["js"] }]);
137135
},
138136

139137
middlewares: [
140-
ctx.prod ? 'compression' : '',
141-
'render' // keep this as last one
142-
]
138+
ctx.prod ? "compression" : "",
139+
"render", // keep this as last one
140+
],
143141
},
144142

145143
// https://quasar.dev/quasar-cli/developing-pwa/configuring-pwa
146144
pwa: {
147-
workboxPluginMode: 'GenerateSW', // 'GenerateSW' or 'InjectManifest'
145+
workboxPluginMode: "GenerateSW", // 'GenerateSW' or 'InjectManifest'
148146
workboxOptions: {}, // only for GenerateSW
149147

150148
// for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts])
151149
// if using workbox in InjectManifest mode
152-
chainWebpackCustomSW (chain) {
153-
chain.plugin('eslint-webpack-plugin')
154-
.use(ESLintPlugin, [{ extensions: [ 'js' ] }])
150+
chainWebpackCustomSW(chain) {
151+
chain
152+
.plugin("eslint-webpack-plugin")
153+
.use(ESLintPlugin, [{ extensions: ["js"] }]);
155154
},
156155

157156
manifest: {
158157
name: `OverVue5.0`,
159158
short_name: `OverVue5.0`,
160159
description: `A Quasar Framework app`,
161-
display: 'standalone',
162-
orientation: 'portrait',
163-
background_color: '#ffffff',
164-
theme_color: '#027be3',
160+
display: "standalone",
161+
orientation: "portrait",
162+
background_color: "#ffffff",
163+
theme_color: "#027be3",
165164
icons: [
166165
{
167-
src: 'statics/icons/icon-128x128.png',
168-
sizes: '128x128',
169-
type: 'image/png'
166+
src: "statics/icons/icon-128x128.png",
167+
sizes: "128x128",
168+
type: "image/png",
170169
},
171170
{
172-
src: 'statics/icons/icon-192x192.png',
173-
sizes: '192x192',
174-
type: 'image/png'
171+
src: "statics/icons/icon-192x192.png",
172+
sizes: "192x192",
173+
type: "image/png",
175174
},
176175
{
177-
src: 'statics/icons/icon-256x256.png',
178-
sizes: '256x256',
179-
type: 'image/png'
176+
src: "statics/icons/icon-256x256.png",
177+
sizes: "256x256",
178+
type: "image/png",
180179
},
181180
{
182-
src: 'statics/icons/icon-384x384.png',
183-
sizes: '384x384',
184-
type: 'image/png'
181+
src: "statics/icons/icon-384x384.png",
182+
sizes: "384x384",
183+
type: "image/png",
185184
},
186185
{
187-
src: 'statics/icons/icon-512x512.png',
188-
sizes: '512x512',
189-
type: 'image/png'
190-
}
191-
]
192-
}
186+
src: "statics/icons/icon-512x512.png",
187+
sizes: "512x512",
188+
type: "image/png",
189+
},
190+
],
191+
},
193192
},
194193

195194
// Full list of options: https://quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
@@ -199,25 +198,23 @@ module.exports = configure(function (ctx) {
199198

200199
// Full list of options: https://quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
201200
capacitor: {
202-
hideSplashscreen: true
201+
hideSplashscreen: true,
203202
},
204203

205204
// Full list of options: https://quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
206205
electron: {
207206
// bundler: 'packager', // 'packager' or 'builder'
208-
bundler: 'builder',
207+
bundler: "builder",
209208
packager: {
210-
// protocols: ["overvue"],
209+
// protocols: ["overvue"],
211210
protocol: "overvue",
212211
appBundleId: "overvue",
213212
// https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
214-
215213
// OS X / Mac App Store
216214
// appBundleId: '',
217215
// appCategoryType: '',
218216
// osxSign: '',
219217
// protocol: 'myapp://path',
220-
221218
// Windows only
222219
// win32metadata: { ... }
223220
},
@@ -227,27 +224,29 @@ module.exports = configure(function (ctx) {
227224

228225
appId: "com.electron.OverVue",
229226
win: {
230-
target: "nsis"
227+
target: "nsis",
231228
},
232229
protocols: [
233230
{
234231
name: "overvue",
235-
schemes: ["overvue"]
236-
}
237-
]
232+
schemes: ["overvue"],
233+
},
234+
],
238235
},
239236

240237
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
241-
chainWebpackMain (chain) {
242-
chain.plugin('eslint-webpack-plugin')
243-
.use(ESLintPlugin, [{ extensions: [ 'js' ] }])
238+
chainWebpackMain(chain) {
239+
chain
240+
.plugin("eslint-webpack-plugin")
241+
.use(ESLintPlugin, [{ extensions: ["js"] }]);
244242
},
245243

246244
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
247-
chainWebpackPreload (chain) {
248-
chain.plugin('eslint-webpack-plugin')
249-
.use(ESLintPlugin, [{ extensions: [ 'js' ] }])
245+
chainWebpackPreload(chain) {
246+
chain
247+
.plugin("eslint-webpack-plugin")
248+
.use(ESLintPlugin, [{ extensions: ["js"] }]);
250249
},
251-
}
252-
}
250+
},
251+
};
253252
});

0 commit comments

Comments
 (0)