New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@twentyfourg/g-components

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twentyfourg/g-components

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

24G Vue Template

Version

EnvFE URLAPI URLAssets URL
Dev
QA
Prod

Project setup

npm install

PWA Project setup

npm install -g @vue/cli
vue add pwa

Fix the syntax error that appears in src/registerServiceWorker.js. Likely, on line 9, remove ' + '

Update public/site.webmanifest with the following:

  • Ensure it has a valid name and short_name.
  • Add a property with the following: "start_url": "index.html",
  • Ensure the icons exist

In vue.config.js, add the follwing before the final };:

  pwa: {
    name: 'SleepScore',
    themeColor: '#000000',
    msTileColor: '#000000',
    appleMobileWebAppCache: 'yes',
    manifestOptions: {
      background_color: '#42b983',
    },
    workboxPluginMode: 'InjectManifest',
    workboxOptions: {
      swSrc: 'src/service-worker.js',
      exclude: [/\.map$/, /site\.manifest$/],
    },
  },

Double check src/service-worker.js for any additional requirements.

Compiles and hot-reloads for development

npm run serve

Compiling and building

This template is set up to compile and build for three environments:

  • Dev: npm run build-dev
  • QA: npm run build-qa
  • Production: npm run build

All builds run in Vue's modern mode.

Lints and fixes files

When using VS Code, this template is set up to automatically lint and format on save using both eslint and prettier. The following command will allow you to lint and format all files:

npm run lint

Customize

App Title

The title of the app can be set in vue.config.js

pages: {
  index: {
    title: 'Vue Template',
  }
}

See Vue Configuration Reference.

Environments

Browsers Supported

Latest unless stated otherwise

  • Edge
  • Safari
  • Firefox
  • Chrome (+/-1)

Read More

Componenents

FAQs

Package last updated on 04 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc