diff --git a/applications/inventory-app/.eslintrc.js b/applications/inventory-app/.eslintrc.js deleted file mode 100644 index f2f884b..0000000 --- a/applications/inventory-app/.eslintrc.js +++ /dev/null @@ -1,31 +0,0 @@ -module.exports = { - root: true, - extends: "eslint:recommended", - "parserOptions": { - "ecmaVersion": 5 - }, - - "rules": { - "brace-style": ["error", "1tbs", { "allowSingleLine": false }], - "camelcase": ["error"], - "comma-dangle": ["error", "never"], - "curly": ["error", "all"], - "eqeqeq": ["error", "always"], - "indent": ["error", 4, { "SwitchCase": 1 }], - "key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }], - "keyword-spacing": ["error", { "before": true, "after": true }], - "max-len": ["error", 128, 4], - "new-cap": ["error"], - "no-console": ["off"], - "no-floating-decimal": ["error"], - "no-magic-numbers": ["error", { "ignore": [0.5, -1, 0, 1, 2], "ignoreArrayIndexes": true }], - "no-multi-spaces": ["error"], - "no-multiple-empty-lines": ["error"], - "no-unused-vars": ["error", { "args": "none", "vars": "local" }], - "semi": ["error", "always"], - "space-before-blocks": ["error"], - "space-before-function-paren": ["error", { "anonymous": "ignore", "named": "never" }], - "spaced-comment": ["error", "always", { "line": { "markers": ["/"] } }] - } - -}; diff --git a/applications/inventory-app/.gitignore b/applications/inventory-app/.gitignore deleted file mode 100644 index c2b66ff..0000000 --- a/applications/inventory-app/.gitignore +++ /dev/null @@ -1,20 +0,0 @@ -.DS_Store -node_modules - -# local env files -.env.local -.env.*.local - -# Log files -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Editor directories and files -.idea -.vscode -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/applications/inventory-app/README.md b/applications/inventory-app/README.md index bba10a9..92866c0 100644 --- a/applications/inventory-app/README.md +++ b/applications/inventory-app/README.md @@ -1,24 +1,3 @@ # inventory -## Project setup -``` -npm install -``` - -### Compiles and hot-reloads for development -``` -npm run serve -``` - -### Compiles and minifies for production -``` -npm run build -``` - -### Lints and fixes files -``` -npm run lint -``` - -### Customize configuration -See [Configuration Reference](https://cli.vuejs.org/config/). +This app is managed in the main project-athena repo for Vircadia. Please see the unpublished scripts folder for its source and make PRs against that for any changes. diff --git a/applications/inventory-app/babel.config.js b/applications/inventory-app/babel.config.js deleted file mode 100644 index e955840..0000000 --- a/applications/inventory-app/babel.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - presets: [ - '@vue/cli-plugin-babel/preset' - ] -} diff --git a/applications/inventory-app/package.json b/applications/inventory-app/package.json deleted file mode 100644 index a79eafa..0000000 --- a/applications/inventory-app/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "Inventory", - "version": "0.1.0", - "private": true, - "scripts": { - "serve": "vue-cli-service serve", - "build": "vue-cli-service build", - "lint": "vue-cli-service lint" - }, - "dependencies": { - "@mdi/font": "^4.8.95", - "core-js": "^3.6.4", - "vue": "^2.6.11", - "vuedraggable": "^2.23.2", - "vuetify": "^2.2.11", - "vuex": "^3.1.3" - }, - "devDependencies": { - "@vue/cli-plugin-babel": "~4.3.0", - "@vue/cli-plugin-eslint": "~4.3.0", - "@vue/cli-service": "~4.3.0", - "babel-eslint": "^10.1.0", - "eslint": "^6.7.2", - "eslint-plugin-vue": "^6.2.2", - "sass": "^1.19.0", - "sass-loader": "^8.0.0", - "vue-cli-plugin-vuetify": "~2.0.5", - "vue-template-compiler": "^2.6.11", - "vuetify-loader": "^1.3.0" - }, - "eslintConfig": { - "root": true, - "env": { - "node": true - }, - "extends": [ - "plugin:vue/essential", - "eslint:recommended" - ], - "parserOptions": { - "parser": "babel-eslint" - }, - "rules": {} - }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not dead", - "ChromeAndroid > 55", - "Chrome > 55" - ] -} diff --git a/applications/inventory-app/public/favicon.ico b/applications/inventory-app/public/favicon.ico deleted file mode 100644 index df36fcf..0000000 Binary files a/applications/inventory-app/public/favicon.ico and /dev/null differ diff --git a/applications/inventory-app/public/index.html b/applications/inventory-app/public/index.html deleted file mode 100644 index 5319044..0000000 --- a/applications/inventory-app/public/index.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - <%= htmlWebpackPlugin.options.title %> - - - - - -
- - - diff --git a/applications/inventory-app/public/inventory-a-msg.svg b/applications/inventory-app/public/inventory-a-msg.svg deleted file mode 100644 index 480a3fd..0000000 --- a/applications/inventory-app/public/inventory-a-msg.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/applications/inventory-app/public/inventory-a.svg b/applications/inventory-app/public/inventory-a.svg deleted file mode 100644 index c53d217..0000000 --- a/applications/inventory-app/public/inventory-a.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/applications/inventory-app/public/inventory-i-msg.svg b/applications/inventory-app/public/inventory-i-msg.svg deleted file mode 100644 index 9585691..0000000 --- a/applications/inventory-app/public/inventory-i-msg.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/applications/inventory-app/public/inventory-i.svg b/applications/inventory-app/public/inventory-i.svg deleted file mode 100644 index c5ec3d8..0000000 --- a/applications/inventory-app/public/inventory-i.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/applications/inventory-app/public/inventory.js b/applications/inventory-app/public/inventory.js deleted file mode 100644 index 4915aeb..0000000 --- a/applications/inventory-app/public/inventory.js +++ /dev/null @@ -1,301 +0,0 @@ -// -// inventory.js -// -// Created by kasenvr@gmail.com on 2 Apr 2020 -// Copyright 2020 Vircadia and contributors. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// - -/* global AvatarList Clipboard console Controller Entities location Messages MyAvatar Script ScriptDiscoveryService Settings -Tablet Vec3 Window */ - -(function () { // BEGIN LOCAL_SCOPE - "use strict"; - var AppUi = Script.require('appUi'); - var ui; - var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system"); - - // VARIABLES - var inventoryDataSettingString = "inventoryApp.data"; - var inventoryData; - - var inventorySettingsString = "inventoryApp.settings"; - var inventorySettings; - - var RECEIVING_ITEM_QUEUE_LIMIT = 5; - var receivingItemQueue = []; - - var NEARBY_USERS_SEARCH_RADIUS = 25; - - - // APP EVENT AND MESSAGING ROUTING - - function onWebAppEventReceived(event) { - var eventJSON = JSON.parse(event); - if (eventJSON.app === "inventory") { // This is our web app! - // print("inventory.js received a web event: " + event); - - if (eventJSON.command === "ready") { - initializeInventoryApp(); - } - - if (eventJSON.command === "web-to-script-inventory") { - receiveInventory(eventJSON.data); - } - - if (eventJSON.command === "web-to-script-settings") { - receiveSettings(eventJSON.data); - } - - if (eventJSON.command === "use-item") { - useItem(eventJSON.data); - } - - if (eventJSON.command === "share-item") { - shareItem(eventJSON.data); - } - - if (eventJSON.command === "web-to-script-request-nearby-users") { - sendNearbyUsers(); - } - - if (eventJSON.command === "web-to-script-request-receiving-item-queue") { - sendReceivingItemQueue(); - } - - if (eventJSON.command === "web-to-script-update-receiving-item-queue") { - updateReceivingItemQueue(eventJSON.data); - } - - } - } - - tablet.webEventReceived.connect(onWebAppEventReceived); - - function sendToWeb(command, data) { - var dataToSend = { - "app": "inventory", - "command": command, - "data": data - }; - - tablet.emitScriptEvent(JSON.stringify(dataToSend)); - } - - var inventoryMessagesChannel = "com.vircadia.inventory"; - - function onMessageReceived(channel, message, sender, localOnly) { - if (channel === inventoryMessagesChannel) { - var messageJSON = JSON.parse(message); - // Window.alert("Passed 0 " + messageJSON.recipient + " vs " + MyAvatar.sessionUUID); - if (messageJSON.command === "share-item" - && messageJSON.recipient === MyAvatar.sessionUUID) { // We are receiving an item. - // Window.alert("Passed 1 " + messageJSON.recipient + " vs " + MyAvatar.sessionUUID); - pushReceivedItemToQueue(sender, messageJSON.type, messageJSON.name, messageJSON.url); - } - } - // print("Message received:"); - // print("- channel: " + channel); - // print("- message: " + message); - // print("- sender: " + sender); - // print("- localOnly: " + localOnly); - } - - function sendMessage(dataToSend) { - Messages.sendMessage(inventoryMessagesChannel, JSON.stringify(dataToSend)); - } - - // END APP EVENT AND MESSAGING ROUTING - - // SEND AND RECEIVE INVENTORY STATE - - function receiveInventory(receivedInventoryData) { - inventoryData = receivedInventoryData; - saveInventory(); - } - - function sendInventory() { - sendToWeb("script-to-web-inventory", inventoryData); - } - - // END SEND AND RECEIVE INVENTORY STATE - - // SEND AND RECEIVE SETTINGS STATE - - function receiveSettings(receivedSettingsData) { - inventorySettings = receivedSettingsData; - saveSettings(); - } - - function sendSettings() { - sendToWeb("script-to-web-settings", inventorySettings); - } - - // END SEND AND RECEIVE SETTINGS STATE - - function saveInventory() { - Settings.setValue(inventoryDataSettingString, inventoryData); - } - - function loadInventory() { - inventoryData = Settings.getValue(inventoryDataSettingString); - } - - function saveSettings() { - Settings.setValue(inventorySettingsString, inventorySettings); - } - - function loadSettings() { - inventorySettings = Settings.getValue(inventorySettingsString); - } - - function pushReceivedItemToQueue(senderUUID, type, name, url) { - console.info("Receiving an item:", name, "from:", senderUUID); - var getAvatarData = AvatarList.getAvatar(senderUUID); - var senderName = getAvatarData.sessionDisplayName; - var senderDistance = Vec3.distance(MyAvatar.position, getAvatarData.position); - - var packageRequest = { - "senderUUID": senderUUID, - "senderName": senderName, - "senderDistance": senderDistance, - "data": { - "type": type, - "name": name, - "url": url - } - }; - - if (receivingItemQueue.length === RECEIVING_ITEM_QUEUE_LIMIT) { - receivingItemQueue = receivingItemQueue.slice(1, RECEIVING_ITEM_QUEUE_LIMIT); - } - - receivingItemQueue.push(packageRequest); - ui.messagesWaiting(receivingItemQueue.length > 0); - } - - function sendReceivingItemQueue() { - sendToWeb("script-to-web-receiving-item-queue", receivingItemQueue); - } - - function updateReceivingItemQueue(data) { - receivingItemQueue = data; - ui.messagesWaiting(receivingItemQueue.length > 0); - } - - function sendNearbyUsers() { - var nearbyUsers = AvatarList.getAvatarsInRange(MyAvatar.position, NEARBY_USERS_SEARCH_RADIUS); - var nearbyUsersToSend = []; - - nearbyUsers.forEach(function(user) { - var objectToWrite; - var aviDetails = AvatarList.getAvatar(user); - var aviName = aviDetails.displayName; - var aviDistance = Vec3.distance(MyAvatar.position, aviDetails.position); - // Window.alert("aviName" + aviName + "user" + user + "MyAvatar.sessionUUID" + MyAvatar.sessionUUID); - if (user !== MyAvatar.sessionUUID - || Controller.getValue(Controller.Hardware.Keyboard.Shift)) { // Don't add ourselves to the list! - objectToWrite = { "name": aviName, "distance": aviDistance, "uuid": user }; - nearbyUsersToSend.push(objectToWrite); - } - }); - - sendToWeb("script-to-web-nearby-users", nearbyUsersToSend); - } - - function useItem(item) { - - //TODO: Add animation support for avatars...? - - // Convert the item.type before checking it... - item.type = item.type.toUpperCase(); - - // Depending on the type, we decide how to load this item. - if (item.type === "SCRIPT") { - ScriptDiscoveryService.loadScript(item.url, true, false, false, true, false); - } - - if (item.type === "MODEL") { - Entities.addEntity({ - type: "Model", - position: Vec3.sum(MyAvatar.position, Vec3.multiplyQbyV(MyAvatar.orientation, { x: 0, y: 0, z: -1.5 })), - rotation: MyAvatar.orientation, - modelURL: item.url, - collisionless: true - }); - } - - if (item.type === "AVATAR") { - MyAvatar.useFullAvatarURL(item.url); - } - - if (item.type === "PLACE") { - location.handleLookupString(item.url, true); - } - - if (item.type === "JSON") { - var jsonToLoad = item.url; - if (jsonToLoad) { - if (Clipboard.importEntities(jsonToLoad)) { - Clipboard.pasteEntities( - Vec3.sum( - MyAvatar.position, - Vec3.multiplyQbyV(MyAvatar.orientation, { x: 0, y: 0, z: -1.5 }) - ) - ); - } - } - } - - if (item.type === "UNKNOWN") { - // We don't know how to handle this yet. - Window.alert("Unknown item type, unable to use."); - } - } - - function shareItem(data) { - data.command = "share-item"; - sendMessage(data); - } - - function initializeInventoryApp() { - sendSettings(); - sendInventory(); - sendReceivingItemQueue(); - } - - function onOpened() { - console.log("hello world!"); - } - - function onClosed() { - console.log("hello world!"); - } - - function startup() { - - loadInventory(); - loadSettings(); - - Messages.messageReceived.connect(onMessageReceived); - Messages.subscribe(inventoryMessagesChannel); - - ui = new AppUi({ - buttonName: "INVENTORY", - home: Script.resolvePath("index.html"), - graphicsDirectory: Script.resolvePath("./"), // Where your button icons are located - onOpened: onOpened, - onClosed: onClosed - }); - } - - startup(); - - Script.scriptEnding.connect(function () { - Messages.messageReceived.disconnect(onMessageReceived); - Messages.unsubscribe(inventoryMessagesChannel); - }); - -}()); // END LOCAL_SCOPE \ No newline at end of file diff --git a/applications/inventory-app/src/App.vue b/applications/inventory-app/src/App.vue deleted file mode 100644 index bbd9218..0000000 --- a/applications/inventory-app/src/App.vue +++ /dev/null @@ -1,1430 +0,0 @@ - - - - - - - diff --git a/applications/inventory-app/src/assets/logo.png b/applications/inventory-app/src/assets/logo.png deleted file mode 100644 index f3d2503..0000000 Binary files a/applications/inventory-app/src/assets/logo.png and /dev/null differ diff --git a/applications/inventory-app/src/assets/logo.svg b/applications/inventory-app/src/assets/logo.svg deleted file mode 100644 index 145b6d1..0000000 --- a/applications/inventory-app/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ -Artboard 46 diff --git a/applications/inventory-app/src/assets/styles/styles.css b/applications/inventory-app/src/assets/styles/styles.css deleted file mode 100644 index c1c100f..0000000 --- a/applications/inventory-app/src/assets/styles/styles.css +++ /dev/null @@ -1,78 +0,0 @@ -/* - styles.css - - Created by Kalila L. on 7 Apr 2020 - Copyright 2020 Vircadia and contributors. - - Distributed under the Apache License, Version 2.0. - See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -*/ - -/* Top Level */ - -.draggable-card { - background-color: rgba(39, 39, 39, 1.0); - margin: 5px 0px; -} - -.draggable-card .handle { - width: 40px !important; -} - -.top-level-folder { - background-color: rgba(39, 39, 39, 1.0); -} - -.top-level-folder .v-list-group__header__prepend-icon { - background-color: rgba(0, 0, 0, 0.3); - width: 50px; - height: 50px; - margin: 5px 5px 7px 0px !important; - padding: 5px 18px 5px 8px; -} - -.top-level-folder .handle { - width: 40px !important; -} - -.top-level-folder .folder-icon { - margin-right: 10px; -} - -.top-level-folder .folder-button { - font-size: 0.795rem !important; -} - -/* Second Level */ - -.v-list-group .column-item { - max-width: 100% !important; - margin-top: 5px; - margin-bottom: 5px; -} - -.v-list-group .draggable-card { - background-color: rgba(0, 0, 0, 0.3); - padding-right: 16px; - padding-left: 0px !important; -} - -.v-list-group .draggable-card .handle { - margin-right: 16px; -} - -/* Menu Slideout */ - -.app-version { - text-align: center; - color: rgba(255, 255, 255, 0.6); - font-weight: lighter; -} - -/* Universal */ - -.handle { - background-color: rgba(0, 0, 0, 0.3); -} - -.inventoryApp::-webkit-scrollbar { width: 0 !important } \ No newline at end of file diff --git a/applications/inventory-app/src/components/ItemIterator.vue b/applications/inventory-app/src/components/ItemIterator.vue deleted file mode 100644 index 6613fe4..0000000 --- a/applications/inventory-app/src/components/ItemIterator.vue +++ /dev/null @@ -1,391 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/applications/inventory-app/src/components/NotUsing.vue b/applications/inventory-app/src/components/NotUsing.vue deleted file mode 100644 index 1ccfaa8..0000000 --- a/applications/inventory-app/src/components/NotUsing.vue +++ /dev/null @@ -1,272 +0,0 @@ - - - \ No newline at end of file diff --git a/applications/inventory-app/src/main.js b/applications/inventory-app/src/main.js deleted file mode 100644 index e412e1e..0000000 --- a/applications/inventory-app/src/main.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - main.js - - Created by Kalila L. on 7 Apr 2020 - Copyright 2020 Vircadia and contributors. - - Distributed under the Apache License, Version 2.0. - See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -*/ - -import Vue from 'vue' -import App from './App.vue' -import vuetify from './plugins/vuetify'; -import { store } from './plugins/store'; - -Vue.config.productionTip = false; - -window.vm = new Vue({ - vuetify, - store, - render: h => h(App) -}).$mount('#app'); diff --git a/applications/inventory-app/src/plugins/event-bus.js b/applications/inventory-app/src/plugins/event-bus.js deleted file mode 100644 index 4e6ddc7..0000000 --- a/applications/inventory-app/src/plugins/event-bus.js +++ /dev/null @@ -1,12 +0,0 @@ -/* - event-bus.js - - Created by Kalila L. on 21 May 2020. - Copyright 2020 Vircadia and contributors. - - Distributed under the Apache License, Version 2.0. - See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -*/ - -import Vue from 'vue'; -export const EventBus = new Vue(); \ No newline at end of file diff --git a/applications/inventory-app/src/plugins/store.js b/applications/inventory-app/src/plugins/store.js deleted file mode 100644 index 9344658..0000000 --- a/applications/inventory-app/src/plugins/store.js +++ /dev/null @@ -1,321 +0,0 @@ -/* - store.js - - Created by Kalila L. on 16 Apr 2020. - Copyright 2020 Vircadia and contributors. - - Distributed under the Apache License, Version 2.0. - See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -*/ - -import Vue from 'vue'; -import Vuex from 'vuex'; - -Vue.use(Vuex); - -export const store = new Vuex.Store({ - devtools: true, - state: { - items: [ - // This is test data and is primarily used for in browser development. - { - "type": "script", - "name": "VRGrabScale", - "url": "https://gooawefaweawfgle.com/vr.js", - "folder": "No Folder", - "uuid": "54254354353", - }, - { - "name": "Test Folder", - "folder": "No Folder", - "items": [ - { - "name": "inception1", - "folder": "Test Folder", - "items": [ - { - "name": "inception2", - "folder": "Test Folder", - "items": [ - { - "type": "script", - "name": "itemincepted", - "url": "https://googfdafsgaergale.com/vr.js", - "folder": "FolderWithinAFolder", - "uuid": "hkjkjhkjk", - }, - ], - "uuid": "adsfa32" - }, - ], - "uuid": "s4g4sg" - }, - ], - "uuid": "sdfsdf", - }, - { - "type": "script", - "name": "VRGrabScale", - "url": "https://googfdafsgaergale.com/vr.js", - "folder": "No Folder", - "uuid": "54hgfhgf254354353", - }, - { - "type": "script", - "name": "TEST", - "url": "https://gooadfdagle.com/vr.js", - "folder": "No Folder", - "uuid": "542rfwat4t5fsddf4354353", - }, - { - "type": "json", - "name": "TESTJSON", - "url": "https://gooadfdagle.com/vr.json", - "folder": "No Folder", - "uuid": "542rfwat4t54354353", - }, - { - "type": "script", - "name": "TESTLONGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG", - "url": "https://googfdaffle.com/vrLONGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG.js", - "folder": "No Folder", - "uuid": "5425ggsrg45354353", - }, - { - "type": "whatttype", - "name": "BrokenIcon", - "url": "https://googfdaffle.com/vrLONGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG.js", - "folder": "No Folder", - "uuid": "5425ggsrg4fdaffdff535asdasd4353", - }, - { - "type": "avatar", - "name": "AVI", - "url": "https://googlfadfe.com/vr.fst", - "folder": "No Folder", - "uuid": "542gregg45s3g4354353", - }, - { - "type": "avatar", - "name": "AVI", - "url": "https://googlefdaf.com/vr.fst", - "folder": "No Folder", - "uuid": "5420798-087-54354353", - }, - { - "type": "model", - "name": "3D MODEL", - "url": "https://googlee.com/vr.fbx", - "folder": "No Folder", - "uuid": "54254354980-7667jt353", - }, - { - "type": "place", - "name": "PLACE DOMAIN", - "url": "https://googleee.com/vr.fbx", - "folder": "No Folder", - "uuid": "542543sg45s4gg54353", - }, - ], - settings: { - "displayDensity": { - "size": 1, - "labels": [ - "List", - "Compact", - "Large", - ], - }, - }, - iconType: { - "SCRIPT": { - "icon": "mdi-code-tags", - "color": "red", - }, - "MODEL": { - "icon": "mdi-video-3d", - "color": "green", - }, - "AVATAR": { - "icon": "mdi-account-convert", - "color": "purple", - }, - "PLACE": { - "icon": "mdi-earth", - "color": "#0097A7", // cyan darken-2 - }, - "JSON": { - "icon": "mdi-inbox-multiple", - "color": "#37474F", // blue-grey darken-3 - }, - "UNKNOWN": { - "icon": "mdi-help", - "color": "grey", - } - }, - supportedItemTypes: [ - "SCRIPT", - "MODEL", - "AVATAR", - "PLACE", - "JSON", - "UNKNOWN", - ], - removeDialog: { - show: false, - uuid: null, - }, - removeFolderDialog: { - show: false, - uuid: null, - }, - createFolderDialog: { - show: false, - valid: false, - data: { - "name": null, - }, - }, - addDialog: { - show: false, - valid: false, - data: { - "name": null, - "folder": null, - "url": null, - }, - }, - editDialog: { - show: false, - valid: false, - uuid: null, // - data: { - "type": null, - "name": null, - "url": null, - "folder": null, - }, - }, - editFolderDialog: { - show: false, - valid: false, - uuid: null, // - data: { - "name": null, - "folder": null, - }, - }, - receiveDialog: { - show: false, - valid: false, - data: { - "userUUID": null, - "userDisplayName": null, - "name": null, - "folder": null, - "type": null, - "url": null, - }, - }, - shareDialog: { - show: false, - valid: false, - data: { - "uuid": null, // UUID of the item you want to share. THIS IS THE KEY. - "url": null, // The item you want to share. - "recipient": null, - } - }, - }, - mutations: { - mutate (state, payload) { - state[payload.property] = payload.with; - // console.info("Payload:", payload.property, "with:", payload.with, "state is now:", this.state); - }, - sortTopInventory (state, payload) { - let { items } = state; - - if (payload.sort === "az") { - state.items.sort(function(a, b) { - var nameA = a.name.toUpperCase(); // ignore upper and lowercase - var nameB = b.name.toUpperCase(); // ignore upper and lowercase - if (nameA < nameB) { - return -1; - } - if (nameA > nameB) { - return 1; - } - - // names must be equal - return 0; - }); - } - - if (payload.sort === "za") { - state.items.sort(function(a, b) { - var nameA = a.name.toUpperCase(); // ignore upper and lowercase - var nameB = b.name.toUpperCase(); // ignore upper and lowercase - if (nameA > nameB) { - return -1; - } - if (nameA < nameB) { - return 1; - } - - // names must be equal - return 0; - }); - } - - Vue.set(state,'items', items); - }, - pushToItems (state, payload) { - let { items } = state; - items.push(payload); - - Vue.set(state,'items', items); - }, - moveFolder (state, payload) { - let { items } = state; - - if (payload.parentFolderUUID === "top") { - payload.findFolder.returnedItem.folder = "No Folder"; - // console.info("Going to push...", payload.findFolder.returnedItem); - // console.info("Containing these items...", payload.findFolder.returnedItem.items); - - items.push(payload.findFolder.returnedItem); - Vue.set(state,'items', items); - - } else if (payload.findParentFolder) { - // console.info("Going to push...", payload.findFolder.returnedItem); - // console.info("Containing these items...", payload.findFolder.returnedItem.items); - // console.info("Into...", payload.findParentFolder.returnedItem); - - payload.findFolder.returnedItem.folder = payload.findParentFolder.name; - payload.findParentFolder.returnedItem.items.push(payload.findFolder.returnedItem); - Vue.set(state,'items', items); - } - }, - moveItem (state, payload) { - let { items } = state; - - if (payload.parentFolderUUID === "top") { - payload.findItem.returnedItem.folder = "No Folder"; - // console.info("Going to push...", payload.findFolder.returnedItem); - // console.info("Containing these items...", payload.findFolder.returnedItem.items); - - items.push(payload.findItem.returnedItem); - Vue.set(state,'items', items); - - } else if (payload.findParentFolder) { - // console.info("Going to push...", payload.findFolder.returnedItem); - // console.info("Containing these items...", payload.findFolder.returnedItem.items); - // console.info("Into...", payload.findParentFolder.returnedItem); - - payload.findItem.returnedItem.folder = payload.findParentFolder.name; - payload.findParentFolder.returnedItem.items.push(payload.findItem.returnedItem); - Vue.set(state,'items', items); - } - } - } -}) \ No newline at end of file diff --git a/applications/inventory-app/src/plugins/vuetify.js b/applications/inventory-app/src/plugins/vuetify.js deleted file mode 100644 index 9aef972..0000000 --- a/applications/inventory-app/src/plugins/vuetify.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - vuetify.js - - Created by Kalila L. on 7 Apr 2020 - Copyright 2020 Vircadia and contributors. - - Distributed under the Apache License, Version 2.0. - See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -*/ - -import Vue from 'vue'; -import Vuetify from 'vuetify/lib'; - -Vue.use(Vuetify); - -export default new Vuetify({ -}); diff --git a/applications/inventory-app/vue.config.js b/applications/inventory-app/vue.config.js deleted file mode 100644 index bc5c4f0..0000000 --- a/applications/inventory-app/vue.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - vue.config.js - - Created by Kalila L. on 7 Apr 2020 - Copyright 2020 Vircadia and contributors. - - Distributed under the Apache License, Version 2.0. - See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -*/ - -module.exports = { - publicPath: "./", - assetsDir: "./", - "transpileDependencies": [ - "vuetify" - ] -} \ No newline at end of file