bopjesvla / hitch

https://hitchmap.com
GNU Affero General Public License v3.0
8 stars 2 forks source link

Move to petite-vue #91

Open bopjesvla opened 1 month ago

bopjesvla commented 1 month ago

The time has come:

https://github.com/bopjesvla/hitch/compare/master...leon-wbr:hitch:master

We'll also need to implement basic router functionality as petite-vue doesn't have it. At its core, this just means making the hash reactive. This ought to work:

      init() {
        // Set initial hash value from URL
        this.hash = window.location.hash || '#home';

        // Listen for hash changes
        window.addEventListener('hashchange', () => {
          this.hash = window.location.hash;
        });
      },
tillwenke commented 1 month ago

What is the goal, what's the reason? ;)