From d61edd93996ba7df521da654b6ae6125096919ec Mon Sep 17 00:00:00 2001 From: Kasen IO Date: Wed, 8 Jul 2020 14:37:00 -0400 Subject: [PATCH] Remove source and update README.md. --- applications/inventory-app/.eslintrc.js | 31 - applications/inventory-app/.gitignore | 20 - applications/inventory-app/README.md | 23 +- applications/inventory-app/babel.config.js | 5 - applications/inventory-app/package.json | 52 - applications/inventory-app/public/favicon.ico | Bin 4286 -> 0 bytes applications/inventory-app/public/index.html | 30 - .../inventory-app/public/inventory-a-msg.svg | 1 - .../inventory-app/public/inventory-a.svg | 1 - .../inventory-app/public/inventory-i-msg.svg | 1 - .../inventory-app/public/inventory-i.svg | 1 - .../inventory-app/public/inventory.js | 301 ---- applications/inventory-app/src/App.vue | 1430 ----------------- .../inventory-app/src/assets/logo.png | Bin 6849 -> 0 bytes .../inventory-app/src/assets/logo.svg | 1 - .../src/assets/styles/styles.css | 78 - .../src/components/ItemIterator.vue | 391 ----- .../inventory-app/src/components/NotUsing.vue | 272 ---- applications/inventory-app/src/main.js | 22 - .../inventory-app/src/plugins/event-bus.js | 12 - .../inventory-app/src/plugins/store.js | 321 ---- .../inventory-app/src/plugins/vuetify.js | 17 - applications/inventory-app/vue.config.js | 17 - 23 files changed, 1 insertion(+), 3026 deletions(-) delete mode 100644 applications/inventory-app/.eslintrc.js delete mode 100644 applications/inventory-app/.gitignore delete mode 100644 applications/inventory-app/babel.config.js delete mode 100644 applications/inventory-app/package.json delete mode 100644 applications/inventory-app/public/favicon.ico delete mode 100644 applications/inventory-app/public/index.html delete mode 100644 applications/inventory-app/public/inventory-a-msg.svg delete mode 100644 applications/inventory-app/public/inventory-a.svg delete mode 100644 applications/inventory-app/public/inventory-i-msg.svg delete mode 100644 applications/inventory-app/public/inventory-i.svg delete mode 100644 applications/inventory-app/public/inventory.js delete mode 100644 applications/inventory-app/src/App.vue delete mode 100644 applications/inventory-app/src/assets/logo.png delete mode 100644 applications/inventory-app/src/assets/logo.svg delete mode 100644 applications/inventory-app/src/assets/styles/styles.css delete mode 100644 applications/inventory-app/src/components/ItemIterator.vue delete mode 100644 applications/inventory-app/src/components/NotUsing.vue delete mode 100644 applications/inventory-app/src/main.js delete mode 100644 applications/inventory-app/src/plugins/event-bus.js delete mode 100644 applications/inventory-app/src/plugins/store.js delete mode 100644 applications/inventory-app/src/plugins/vuetify.js delete mode 100644 applications/inventory-app/vue.config.js 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 df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4286 zcmds3O=w(I6h31pQDoYH=t39GvMXKaojBDvb3kw=lSa7! zH6RDM|EdPBjpu|F{w=S6>1) zSldk#0lor#>;pK!wW}V4TCMO|E8LCrQ`U=DYx?Y|iQd{n4GrUbm@B9O9N^kj4}9D) zEBte$jkSNv`qKI1v38~g%ps;Pug3+>9ed!lN38IBeHmNO$b2F8J`j|sZK@U(9 zIKf?5gV)BhZiRo(>%aL`T~D8`>g;3jzHhI;Y1|xQ5S!2UoZxm^`QiO#f1ir;Q`U3u zOlr~^tR3n=3}OfL0QWU$MDn2~D?Dq3H>289)|Jod`uuF}%wgZB%ngTd2Jmbc7mJ*N z8o&*Ws0aT4Jy!U~NZWtcUs-u*dwm(LZZd6N2HH*2&G=mmazcLY2@Pnu9)wz~@WtGn z%GH12lbSA^>_2nKl=*Icrg8@WJJN3$mxJ7b9^kG9t*rKaR`}OkoqFjT)}^!6qVs+; znKm=+h9SV&O>;9}19HKU=k;39L=B@>_~U%c_}pAB9vn-{)iOA@ z`Gbz|;XKc)RMRU(Hiq7|S^R0B4Nj&2Yg0j?8` V0;@zLK&R9xQK{qqt-4uA{|%|~_s#$S 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 f3d2503fc2a44b5053b0837ebea6e87a2d339a43..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6849 zcmaJ`cT`i&wg(ASQKU*yLLh*2LQP2ML_nG}sRBZP2nmqTyP@|E(gi_8iZtm}dQqfE z3tbTTkggN~eGBjRy?g(-@6B3gt(iUh_nTd2&YH7Nl%CE#S{gPQ5)u+x4Ruw05)zVu z%ZG}BgoLERq%x0$goM>y&BWcn#opb^28SY1vU7Qi0%~Av98mfw8#^DjK@^;Xgp3<) zXyR_7tp&4n!HC#g>WFw_TuCk)T*2Gb#?}et4t$JqKw}Z0-Ifjz5N(G5J(SWG({@!s zIil5laVP^{9Yb4RCtIi;NI@P5_l9|6Trntj8=yDF8H+;P{jp@0!oQU3)_l`O9Ew}BH~igGEf;IAVf@DQdCS<6e1=p28BsUz{DWH zzZ*y%2*=sk!}L{=f3JnJvqyj&-Q8VbqM}}2ULsx+A}%-wQE?~~Dk=sMg+PRHcJ{(} zAFR8Lw=fpZ{SSjG3U7-;ySk%Yu)s@3o5wC5?g$X*9~UsL+S>n1jK%*QC|ehdsJD%) zsJMujCIoAF<@@rFLGC{cYB-o*oFi_%BgbN>VO#<>3f3tcL@YHPz( zU2HutD6G4NDgxw_xZxU{&qnv{~Pq?#;JSzKBYDlQFCmHh{+ zfyKMqU~N(VVA21^LjPYZOa+Isad*KPy0|$1lRZ607k3xDql+t0MFq&OZDWhZUXJfx z#`bShQ8=_G$_|Nh!2tgR2ZsJH21rXuD~Us7pfb`>h`6|#1XNrWDys?=Q%1_Fs7cC5 zgZ{?a{TIjo#wz`vSW$T(T=X)t|B>l`MEa`8%kKZ~TY2EWcRmVhhXCO~3i8HxVg*P@ zSR^%6l?=V-zF9iOT7L3)wBfPaipXQVv2IC8(+KC7T|rTimg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zG 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