gosqasorg / asset-provenance-tracking

Node.js implementation, using Azure as a backend, of a system for Global Distributed Tracking, a free-of-charge, free-software system for building up a provenance or history of objects/assets/devices.
https://gosqas.org/
GNU Affero General Public License v3.0
4 stars 3 forks source link

Title bar is now a default layout (on all pages) #169

Closed K42IE closed 2 weeks ago

K42IE commented 2 weeks ago

fixes #100

Other fixes:

If you have questions about layouts please check out this video: https://www.youtube.com/watch?v=LZDQhOaBBbk

K42IE commented 2 weeks ago

I also made sure that there was the hamburger menu for mobile in this layout. I am making another issue to figure out how to fix the layout (will need to dynamically shrink the logo to fit (or both the logo and the h-menu)). image

K42IE commented 2 weeks ago

If you have questions about layouts please check out this video: https://www.youtube.com/watch?v=LZDQhOaBBbk

devhawk commented 2 weeks ago

Looks good in npm run dev but if I npm run build and npm run preview to test the preview build and navigate to the device page, I'm getting an error on the QR code generator and I get redirected to the home page.

Sample device: http://localhost:3000/device/3DZQDNpvt9dT8tNLYXENvt

Console spew:

file:///home/harry/asset-provenance-tracking/packages/frontend/.output/server/chunks/build/_deviceKey_-DA8D7B8t.mjs:4
import QRCodeVue3 from 'qrcode-vue3';
       ^^^^^^^^^^
SyntaxError: The requested module 'qrcode-vue3' does not provide an export named 'default'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async setup (file:///home/harry/asset-provenance-tracking/packages/frontend/.output/server/chunks/build/server.mjs:845:76)
    at async Object.callAsync (file:///home/harry/asset-provenance-tracking/packages/frontend/.output/server/chunks/build/server.mjs:89:16)
    at async applyPlugin (file:///home/harry/asset-provenance-tracking/packages/frontend/.output/server/chunks/build/server.mjs:217:35)
    at async executePlugin (file:///home/harry/asset-provenance-tracking/packages/frontend/.output/server/chunks/build/server.mjs:255:9)
    at async applyPlugins (file:///home/harry/asset-provenance-tracking/packages/frontend/.output/server/chunks/build/server.mjs:263:5)
    at async createNuxtAppServer (file:///home/harry/asset-provenance-tracking/packages/frontend/.output/server/chunks/build/server.mjs:1350:7)
    at async Object.renderToString (file:///home/harry/asset-provenance-tracking/packages/frontend/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs:173:19)
devhawk commented 2 weeks ago

the QR code error described in my last comment doesn't appear to be related to this PR. I am seeing the same behavior on the published site. I opened #178 to track