GithubHelp home page GithubHelp logo

pierbover / vue-router Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vuejs/vue-router

0.0 2.0 0.0 6.39 MB

๐Ÿšฆ The official router for Vue.js.

Home Page: http://router.vuejs.org/

License: MIT License

JavaScript 96.34% Shell 0.52% TypeScript 3.14%

vue-router's Introduction

Vue Router fork for Chrome OS

This is a fork from Vue Router 3.0.1 to overcome some Chrome OS limitations for Chrome apps.

Chrome OS apps crash when accessing the window.history object. The problem is that even when using Vue Router in hash mode it still accesses window.history. This fork fixes that.

This fork is really a quick hack only intended to be used in hash mode, but I personally use it in a Chrome OS app and it works fine for that purpose.

To use this repo in your project simply:

npm install pierbover/vue-router#chrome-os

And then:

import Vue from 'vue';
import Router from 'vue-router-chrome-os';

Vue.use(Router);

const router = new Router(...);

For the moment it's not possible to use router.go(n) , but otherwise it behaves like Vue Router in hash mode.

I have created a feature request to solve this but I doubt there will be interest by the Vue team since Chrome OS is still a pretty exotic thing.

vue-router's People

Contributors

yyx990803 avatar posva avatar fnlctrl avatar machinisteweb avatar linusborg avatar kazupon avatar alex-sokolov avatar changjoo-park avatar gbezyuk avatar javoski avatar ktsn avatar jinjiang avatar pascalaoms avatar znck avatar termosa avatar iwader avatar wjmao88 avatar zeratulmdq avatar akoumjian avatar pearofducks avatar dharik avatar jounqin avatar pierbover avatar shika358 avatar tejitak avatar zaccharles avatar dear-lizhihua avatar wiiikiii avatar adamturtle avatar amurchick avatar

Watchers

 avatar James Cloos avatar

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.