Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚧 WIP Integrate parcel and refactor to more pure Vue components #459

Draft
wants to merge 39 commits into
base: develop
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ae69a91
Add parcel dependencies and run tasks
jaywon Mar 17, 2019
ed7270d
Convert custom environment parsing syntax for Post HTML syntax for va…
jaywon Mar 17, 2019
171e11f
Add parcel specific files/directories to .gitignore
jaywon Mar 17, 2019
c5174b1
Add .env example file to repo for self-documenting vars
jaywon Mar 17, 2019
b8e81e8
Merge branch 'develop' into chore/integrate-parcel
jaywon Mar 17, 2019
c1a52c0
:pencil2: Add .vscode directory to .gitignore
jaywon Mar 18, 2019
66d434b
:recycle: Create shared module for Vue EventBus singleton
jaywon Mar 18, 2019
e2ccd3c
Add global SCSS for starting to theme the application
jaywon Mar 18, 2019
c2d828f
:recycle: Refactor panel files into standard Vue Single File Component
jaywon Mar 18, 2019
3bff06d
:recycle: Refactor management pane to Vue Single File Component
jaywon Mar 18, 2019
a595939
:wrench: Add parcel build/run statements to watch entrypoints directory
jaywon Mar 18, 2019
3c72d1d
:heavy_plus_sign: Add Display components for migration/refactor
jaywon Mar 18, 2019
034d987
:fire: Delete display.css, migrated to Vue Display component
jaywon Mar 18, 2019
4394ae1
:recycle: Break out HudButton and HudButtons to their own components
jaywon Mar 20, 2019
7d4c1a8
:recycle: Break out Tab and Tabs to their own components
jaywon Mar 20, 2019
6ed9e7a
:recycle: Break out AlertAccordion to its own component
jaywon Mar 20, 2019
10b9211
:recycle: Refactor all modals into their own components
jaywon Mar 20, 2019
1ba51e7
:recycle: Break out ToolListItem to its own component
jaywon Mar 20, 2019
c99dd70
:recycle: Break out SiteTreeNode to its own component
jaywon Mar 20, 2019
5f1e77a
Uncomment Spectre css include for now, will evaluate spectre componen…
jaywon Mar 20, 2019
bb29d06
:recycle: Refactor display.html|css|js to a Vue Single Page Component…
jaywon Mar 20, 2019
f71b2be
:recycle: Refactor management.html|css|js to a Vue Single Page Compon…
jaywon Mar 20, 2019
8494797
:recycle: Stub out Drawer Single Page Component files for conversion
jaywon Mar 20, 2019
8b5ffe8
:fire: Remove manual vue dependencies in favor of parcel build from n…
jaywon Mar 20, 2019
641de54
:heavy_plus_sign: Add localforage import
jaywon Mar 20, 2019
165abc6
:recycle: Remove localforage script tag and clean up cruft
jaywon Mar 20, 2019
d8dcca3
Add TODO note for refactor
jaywon Mar 20, 2019
bcde54e
:recycle: Remove localforage script include and use ES6 import
jaywon Mar 20, 2019
440ea17
Add i18n compiled file to development environment since it's needed f…
jaywon Mar 22, 2019
098534d
:wrench: Change PostHTML delimiters to not conflict with Vue template…
jaywon Mar 22, 2019
74ee6d7
Refactor i18n interpolation and PostHTML delimiter syntax
jaywon Mar 22, 2019
7b8308d
:fire: Remove webpack dependencies and configuration
jaywon Mar 25, 2019
e9e34a1
:fire: Remove localforage downloaded copy for npm version
jaywon Mar 25, 2019
622c5da
:recycle: Convert display into entrypoint and associated files for ne…
jaywon Mar 25, 2019
47a4cad
:sparkles: Linter reformatting and minor cleanup
jaywon Mar 25, 2019
bbf848a
Add placeholder main file to start holding global styles
jaywon Mar 25, 2019
d795df9
:recycle: Conversion of all drawer related component
jaywon Mar 25, 2019
3dac5ee
:pencil2: Fix default locale in i18n init
jaywon Mar 25, 2019
1a327d3
:heavy_plus_sign: :heavy_minus_sign} Update node packages
jaywon Mar 27, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/zapHomeFiles/hud/libs/event-bus.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Vue from 'vue';
export const EventBus = new Vue();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love this shared module

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the events are registered in this external bus, they all need to be individually torn down:
e.g.

	beforeDestroy () {
		eventBus.$off('showSiteTreeModal')
	}

You could create a global mixin here, but I think that the difficulty you would face is that you will have to contort yourself to know which component is being destroyed. Probably better to tear them down in the individual components, because that way later contributors can SEE that they are being unregistered.