GithubHelp home page GithubHelp logo

girder / vue-project-template Goto Github PK

View Code? Open in Web Editor NEW
6.0 13.0 1.0 453 KB

Project template for Girder 4 SPA front-end applications

HTML 12.02% Vue 18.72% TypeScript 48.78% JavaScript 20.49%
girder-4

vue-project-template's Introduction

Vue Project Template

This is a project boilerplate template designed for building SPAs that will serve as front-ends to Girder 4-based servers. The following features are included:

  • vuetify installation and configuration
  • axios installation and configuration
  • vue-router installation and skeleton boilerplate
  • Girder 4 OAuth client library installation and configuration
  • A home page containing a working OAuth login / logout button
  • Sentry integration (if no DSN is provided, this will be inactive)
  • TypeScript
  • Best-practice eslint configuration
  • GitHub Actions CI that runs tests, lint, and build

How to use this template

  1. Click the button in GitHub that says Use this template.

If you don't want to use GitHub, you can instead clone the repository, rm -rf .git/ in it, and git init the copy.

  1. After you have your copy, replace occurrences of CHANGEME in the codebase.
git grep CHANGEME

Recommended IDE Setup

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's .vue type support plugin by running Volar: Switch TS Plugin on/off from VSCode command palette.

vue-project-template's People

Contributors

jjnesbitt avatar naglepuff avatar subdavis avatar zachmullen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mvandenburgh

vue-project-template's Issues

Correctly configure sentry

The current sentry configuration is missing some necessary details and some recommended fields.

Needs the Vue integration, a reasonable release identifier, and an environment identifier.

Might also be nice to add VueGtag google analytics.

Housekeeping dump

@subdavis feel free to break this up into separate issues. Just dumping for now.

  • Opportunities to add stuff:

    • Pre-configured vuetify theme customization (colors, fonts)
    • Pre-configured vuetify SASS variable customization (It’s easy, but you have to read the docs and I hate reading)
  • Instructions for upgrading deps on ejection.

  • Maybe some info on hash vs history routing, and some vue.config.js proxy setup.

  • Just mention netify, django, nginx docs?

  • Mention in the readme that this can be used with any old backend and just remove a couple small bits.

  • (Brandon): I’m going to check in a “next” branch with my attempt at a Vue 3 Vite project. Once Vuetify 3 is ready, we can talk about switching it, but meanwhile, it will be a place to iterate on our “best practices for Vue3”.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.