Commit Graph

10030 Commits

Author SHA1 Message Date
dependabot-preview[bot]
aade1a6d75 Bump storybook-addon-themes from 5.3.0 to 5.4.0 (#146) 2020-03-05 16:00:57 +00:00
dependabot-preview[bot]
726b39adff Bump @babel/core from 7.8.6 to 7.8.7 (#145) 2020-03-05 02:05:35 +00:00
Rijk van Zanten
ff5e843357 Bump eslint from 5.16.0 to 6.8.0 (#143)
* Bump eslint from 5.16.0 to 6.8.0

Bumps [eslint](https://github.com/eslint/eslint) from 5.16.0 to 6.8.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.16.0...v6.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix eslint setup for new major version

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-03-04 13:55:17 -05:00
Rijk van Zanten
5509d79756 Add header bar to private view (#142)
* Add header bar basic

* Fix alignment of breadcrumb

* Fix icon size in breadcrumb

* Add slots / stories for header bar

* Fix typo

* Add disabled color overrides to button

* Fix box icon

* Add header actions section for collapsable buttons

* Tweak css of drawer responsively

* Cover viewport (for notched use)

* Hide gray boxes on iOS taps

* Only show hover effect for devices that support hover

* Finish collapsable header buttons

* Remove wrong reference

* Tweak spacing of nav toggle

* Update storybook entry

* Add storybook entry for header actions

* Update structure of private-view and subcomponents

* Add provide support to storybook

* Update storybook / readme's for private view components

* Use defineComponent instead of createComponetn

* Fix broken import

* Fix tests, update readmes, etc

* Add storybook entries for header actions and module bar

* Remove unused utils

* Use defineComponent instead of createComponent

* Update structure of stories

* Fix story of private view
2020-03-04 13:37:41 -05:00
dependabot-preview[bot]
dba5329d31 Bump @vue/eslint-config-typescript from 4.0.0 to 5.0.2 (#141)
* Bump @vue/eslint-config-typescript from 4.0.0 to 5.0.2

Bumps [@vue/eslint-config-typescript](https://github.com/vuejs/eslint-config-typescript) from 4.0.0 to 5.0.2.
- [Release notes](https://github.com/vuejs/eslint-config-typescript/releases)
- [Commits](https://github.com/vuejs/eslint-config-typescript/commits/v5.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update eslintrc to match major upgrade of typescript-eslint

* Fix linter warnings and tests

* Fix tests for real this time

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-03-03 16:06:46 -05:00
dependabot-preview[bot]
be1d2cf4f8 Bump lint-staged from 9.5.0 to 10.0.8 (#138)
* Bump lint-staged from 9.5.0 to 10.0.8

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.5.0 to 10.0.8.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v9.5.0...v10.0.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Remove git add from lint-staged

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-03-03 13:28:04 -05:00
dependabot-preview[bot]
2bd12f3c2d Bump @types/jest from 24.9.1 to 25.1.3 (#140)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 24.9.1 to 25.1.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-03 13:23:26 -05:00
dependabot-preview[bot]
30e2ed4772 Bump @vue/eslint-config-prettier from 5.1.0 to 6.0.0 (#139)
* Bump @vue/eslint-config-prettier from 5.1.0 to 6.0.0

Bumps [@vue/eslint-config-prettier](https://github.com/vuejs/eslint-config-prettier) from 5.1.0 to 6.0.0.
- [Release notes](https://github.com/vuejs/eslint-config-prettier/releases)
- [Changelog](https://github.com/vuejs/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/eslint-config-prettier/compare/v5.1.0...v6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update eslintrc to reflect @vue/eslint-config-prettier changes

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-03-03 13:22:49 -05:00
dependabot-preview[bot]
2fe5fa0500 Bump @vue/composition-api from 0.3.4 to 0.4.0 (#137)
* Bump @vue/composition-api from 0.3.4 to 0.4.0

Bumps [@vue/composition-api](https://github.com/vuejs/composition-api) from 0.3.4 to 0.4.0.
- [Release notes](https://github.com/vuejs/composition-api/releases)
- [Changelog](https://github.com/vuejs/composition-api/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/composition-api/compare/v0.3.4...v0.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Replace createComponent with defineComponent

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-03-03 13:16:05 -05:00
dependabot-preview[bot]
60b9990051 Bump @typescript-eslint/eslint-plugin from 2.21.0 to 2.22.0 (#134) 2020-03-02 18:20:46 +00:00
dependabot-preview[bot]
52d38f1721 Bump @typescript-eslint/parser from 2.21.0 to 2.22.0 (#135) 2020-03-02 18:16:02 +00:00
dependabot-preview[bot]
cb505a0260 Bump @typescript-eslint/typescript-estree from 2.21.0 to 2.22.0 (#133) 2020-03-02 18:11:19 +00:00
dependabot-preview[bot]
4ff6d2daf7 Bump eslint-plugin-vue from 5.2.3 to 6.2.1 (#129)
* Bump eslint-plugin-vue from 5.2.3 to 6.2.1

Bumps [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) from 5.2.3 to 6.2.1.
- [Release notes](https://github.com/vuejs/eslint-plugin-vue/releases)
- [Commits](https://github.com/vuejs/eslint-plugin-vue/compare/v5.2.3...v6.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Upgrade eslint major version

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-03-02 11:13:56 -05:00
dependabot-preview[bot]
3d0dce82a0 Bump @babel/core from 7.8.4 to 7.8.6 (#131) 2020-03-02 15:52:32 +00:00
dependabot-preview[bot]
06b0a25589 Bump @vue/cli-plugin-vuex from 4.1.2 to 4.2.3 (#132) 2020-03-02 15:49:38 +00:00
dependabot-preview[bot]
3c232c6690 Bump @storybook/addon-links from 5.3.12 to 5.3.14 (#130) 2020-03-02 15:49:02 +00:00
dependabot-preview[bot]
8fd9f7749d Bump vue-i18n from 8.15.3 to 8.15.4 (#128) 2020-03-02 15:48:55 +00:00
Rijk van Zanten
e713759ae7 Fix tooltips (#127) 2020-02-28 16:32:28 -05:00
Rijk van Zanten
bdf424a234 Start alt-colors overrides (#126) 2020-02-28 16:27:38 -05:00
Rijk van Zanten
28531b531b Add hydration, collection store, collections module navigation (#125)
* Add hydration functions and logout route

* Add tests for hydration

* Add collections nav

* Structure collections module, add overview route

* Fix failing tests

* Add test for use-navigation

* Add tests for collections-navigation

* Add tests for collections-overview

* Fix export for use-navigation composition

* Update tests
2020-02-28 16:21:51 -05:00
Rijk van Zanten
3a76455776 Extension registration (#124)
* Restructure extensions and registration

* Add registration function for layouts

* Combine extension registrations

* Prefer separate folders over single

* Don't register extensions / views in storybook

* Fix failing tests
2020-02-27 15:50:49 -05:00
Rijk van Zanten
7c3b2d7f12 Private View / Drawer Detail (#123)
* Setup file / folder structure for drawer-detail

* Add type definition for icon options

Might be useful, might be not.

* Provide drawer open state to detail and respond to it

* Rename active-background to background-color-active

* Add hover / active styling

* Remove duplicate scss decl

* Add better example to storybook

* Add drawer detail group, finish drawer detail

* Format readme table (ocd)
2020-02-27 11:57:25 -05:00
Rijk van Zanten
ad459aa53a Test config (#122)
* Automatically reset / clear mocks between tests

* Fix test for private view

* Fix tooltip test

* Fix router tests

* Fix all other tests
2020-02-27 10:31:47 -05:00
Rijk van Zanten
47649d29a4 [WIP] Add v-item-group and v-item (#121)
* Add v-item-group / v-item / groupable compositions

* Add support for multiple prop

* Handle internal selection, prepare for custom v-model

* Support v-model in item-group

* Add docs

* Register new components

* Fix typing of and add tests for array equal util

* Move is-empty to util

* Base all internal state on index / value instead of id

* Cleanup usage of groupableParent

* Add support for max option

* Add support for mandatory

* Add docs / cleanup code

* Add full test coverage for groupable compositions

* Add tests for v-item / v-item-group
2020-02-27 09:57:05 -05:00
Rijk van Zanten
0669515c36 Add layout registration logic (#120)
* Move modules types into extensions file

* Rename modules store to extensions store

* Start on registering tabular

* Add register component util

* Register layouts

* Build bundle for modern browsers

Snuck this commit into the wrong branch, just because I can

* Add tests for layout registration + add dummy tabular
2020-02-25 09:48:36 -05:00
Jacob Rienstra
a6d17706e2 List Component MVP (#119)
* added empty files

* barest of bones

* density works

* density and nav

* hover kinda works for links, still need to ccheck click events and also die

* styling kinda working now

* readme and testing

* small tweaks

* put back whitespace

* actually fixed

* Add stylelint prettier to yarn lock

* Register list / list item globally

* Let names be inferred through file

* Match object structure in props

* Cleanup readme

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-02-24 18:17:53 -05:00
Rijk van Zanten
139ced06f5 Implement router dynamic route replacement logic (#116)
* Implement router dynamic route replacement logic

Vue router has pretty bad dynamic route registration handlers, meaning we have to hack around replacing the full routes array in order to achieve properly matched routes

* Add test coverage for replacerouter function

* Replace anonymous event handlers with named HoCs for better test coverage

* Add tests for module registration

* Get test coverage to 100%
2020-02-24 12:05:06 -05:00
Rijk van Zanten
3a7d814e77 Create auth helpers file, check auth on failed requests, change beforeRoute handler (#114)
* Create auth helpers file, check auth on failed requests, change beforeRoute handler

* Uninstall debug

* Navigate to / on no public projects

* Get router test coverage to 100%

* Fix auth tests

* Add tests for new projects store action
2020-02-21 16:22:08 -05:00
Rijk van Zanten
031bae4ac8 Modules store and bar (#112)
* Register views globally

* Use global private view in debug route

* Register login route

* Add barebones login form

* Add auth check on routing

* Add tests and extract checkAuth function

* Fix tests of router

* Move stores into subfolders

* Register modules from modules store

* Register name / icon in modules store

* Update module configs

* Render v-button in module sidebar

* Render correct paths in module sidebar

* Add activated style to button

* Use correct color for button in module bar

* Use correct icons for system modules

* Add tests for modules store

* Remove readme in favor of inline comments
2020-02-19 15:21:54 -05:00
Rijk van Zanten
a16569f45d Add to prop support on v-button (#111) 2020-02-19 12:24:19 -05:00
Rijk van Zanten
61311c13bb [WIP] Add router auth navigation guard (#109)
* Register views globally

* Use global private view in debug route

* Register login route

* Add barebones login form

* Add auth check on routing

* Add tests and extract checkAuth function

* Fix tests of router
2020-02-19 11:40:39 -05:00
Nitwel
2dc48e8edf Custom Tooltip (#43)
* implemented basic tooltip

* add animation

* finish up tooltip, added instant option

* implemented basic tooltip

* add animation

* finish up tooltip, added instant option

* Uninstall v-tooltip

* Match folder structure of focus to tooltip

* Register new directives

* remove duplicate folder

* Export functions, cleanup animate

* Export update tooltip function

* Increase test covergae

* Added start and end options

* Structure positioning tests

* tooltip right end will now show on the right end

* Add tests for modifier states

* Update test coverage

* Fix stylelint issues

* made top as default position

* added inverted option

* fix lint

* Move tooltip style vars to theme

* Remove line clamp

* Update tests

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-02-18 17:58:24 -05:00
Rijk van Zanten
e2664ad3fb Module based routing (#104)
* Initial commit

* Export registerModule function

* Add unit tests for module registration
2020-02-18 15:47:58 -05:00
Nitwel
08873c3e88 Notice component (#44)
* initial commit

* finish up notice

* fix unit tests

* Add icon prop

* Use css vars for colors and update readme / story

* Use warning icon for warnings

* Only allow one class at a time

* Add tests for icon prop / success default

* Remove unneeded class

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-02-18 12:42:57 -05:00
Nitwel
42ad64f5e7 Add breadcrumb component (#42)
* added breadcrumb, removed customSize from icon

* Use proptype + use name for for key

* Change name of arrow to divider

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-02-17 15:30:16 -05:00
Nitwel
a071730068 Add badge component (#24)
* added badge component

* revert button changes

* added color vars

* remove unit test for colors

* finish up badge

* add unit tests

* use css vars for offset, improve readability

* use css for positioning

* use css for size

* fix lint

* fix unit tests

* removed unnecessary span

* Tweak markup, use template instead of span

* Use px for offset

* Ignore zero-no-unit in offset default value

* Allow px after 0 value in css

* Use span instead of template

* Update readme and storybook

* Update the tests

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-02-17 15:12:19 -05:00
Nitwel
9fcf702b4f Add progress circular (#32)
* made spinner more fancy

* rebuild spinner to progress circular

* update readme

* cleaned code and style

* clean readme

* made spinner more fancy

* rebuild spinner to progress circular

* update readme

* cleaned code and style

* clean readme

* Register circular progress

* Fix broken import

* Fix stylelint problems in v-progress-circular

* Add some useful tests for circular progress

* Delete package-lock.json

* Update readme

* Ignore package-lock

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-02-17 14:28:16 -05:00
Rijk van Zanten
62bc8663a0 Private view (#41)
* Add file structure

* Add basics of private view

* Add composition api in every test

* Install nanoid

* Add request queue

* Register all global components

* Make bunny run on api queue

* Use private route for debug now

* Move request queue to store

* Remove unused sleep function in hover test

* Use new request queue in private view

* Remove jest pre-test config

* Finish logo + tests

* Add tests for private view

* Fix unhandled promise in api test
2020-02-17 14:06:04 -05:00
Rijk van Zanten
7cd1de564a Add base public view (#39)
* Fix build error in TS in test

* Use public view in debug

* Render project background in art

* Add wide prop

* Fix TS errors

* Cleanup background styles + add tests

* Add minimal readme
2020-02-14 14:23:55 -05:00
Nitwel
8dad53e41c Added click feedback (#35)
* added click feedback

* clean code

* add unit test

* Remove has-click and get tests to 100% coverage

* Fix tests

* Update src/components/v-button/v-button.vue

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-02-14 12:43:54 -05:00
Rijk van Zanten
fcf50ea8c8 Restructure global scss (#31)
* Restructure global scss

* Fix typo / wrong import

* Use new colors in button

* Add mixins for type styles and no-wrap

* Use new color names in checkbox

* Use correct color names in chip

* Use new colors in v-input

* Use overlay color styles

* Use new color vars in linear progress

* Use new colors in slider

* Update readmes + use colors in switch

* Use new global colors in table

* Add placeholder dark mode vars

* Fix wrong button statement
2020-02-14 12:42:22 -05:00
Rijk van Zanten
862a73b462 Update test.yml 2020-02-13 17:24:49 -05:00
Rijk van Zanten
d4f4b4cac0 Stylelint config (#30)
* Install stylelint

* Move stylelint config to root

* Setup auto-fixing of scss on commit

* Use single quoted strings

Plays nicely with prettier

* Autofix CSS problems

* Fix indentation of package.json
2020-02-13 17:23:37 -05:00
Rijk van Zanten
d63396eb25 Use size class (#28)
* Add use-size-class composition

* Use size-class composition in components

* Remove unnecessary tests

* Update readme
2020-02-13 16:37:58 -05:00
Nitwel
0b1f73fc8e Use css vars instead of props for color (#25)
* changed button to use css vars for style

* updated avatar component

* updated checkbox and icon component

* updated chip and overlay component

* update progress and sheet component

* added support for slider and spinner component

* update switch component

* remove unit tests for colors

* made color vars more clear in docs

* changed unactive to inactive

* storybook now uses colorpicker for all color settings

* Cleanup v-avatar readme

* Tweak v-button inline styles + update readme

* Force disabled color to input border

* Cleanup readme for checkbox

* Fix formatting on table in readme for checkbox

* Add css vars to readme for chip

* Use css var for size

* Use CSS Var for z-index

* Use css var for height in linear progress

* Use css vars for sheet

* Use private css var for percentage + update readme

* Fix typo

* Remove deprecated props, update readme

* Use css var for table height

* Update storybook entries

* Remove obsolete tests

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-02-13 13:46:10 -05:00
Rijk van Zanten
1883e230d1 Add left / right props to icon (#2)
* Add left / right props to icon

* Remove wrong size class import
2020-02-11 20:19:40 -05:00
Nitwel
87c0eaa9a9 Chip Component (#1)
* initial commit

* finished main features and added docs

* add unit tests

* fix "visible" unit test

* changed active prop to v-if

* sync support for active prop

* clear code

* Remove button description from chip readme

* Misc tweaks in story / readme

* Minor code style tweaks

* fix initial render

* Use 4px based height

* Add missing tests + missing debug route

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-02-11 18:42:31 -05:00
rijkvanzanten
773e963524 Update readme file 2020-02-11 11:16:45 -05:00
rijkvanzanten
3cdaed1e4c Merge branch 'master' of github.com:rijkvanzanten/directus-x 2020-02-11 11:02:41 -05:00
rijkvanzanten
8636af7357 Add dark / light mode to storybook 2020-02-10 17:56:19 -05:00