Commit Graph

282 Commits

Author SHA1 Message Date
Rijk van Zanten
91e5691895 Use immediate watcher where needed (#689) 2020-06-09 13:47:59 -04:00
rijkvanzanten
5382afab19 Extract content padding into two separate vars 2020-06-09 13:02:22 -04:00
rijkvanzanten
ae0876594e Fix overflow of tabular to maintain padding 2020-06-09 12:49:12 -04:00
dependabot-preview[bot]
08b3310029 Bump @vue/composition-api from 0.5.0 to 0.6.1 (#683)
* Bump @vue/composition-api from 0.5.0 to 0.6.1

Bumps [@vue/composition-api](https://github.com/vuejs/composition-api) from 0.5.0 to 0.6.1.
- [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.5.0...v0.6.1)

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

* Support composition api 0.6+

* Remove failing tests

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-06-08 18:17:58 -04:00
Rijk van Zanten
93c7cdef1f Presets (#687)
* Fix preset detail dropdowns

* Filter preset collections dropdown
2020-06-08 17:32:48 -04:00
Rijk van Zanten
1a8e02a74e Rename global settings -> project settings (#686) 2020-06-08 17:14:21 -04:00
Rijk van Zanten
70bbb0aa22 Multiple files (#685)
* Start on files structure

* Move relationship helper to separate file

* Extract useSelection to file

* Extract use preview

* Remove unused imports

* Extract use-edit

* Remove unused import

* Use m2m base to create files
2020-06-08 15:56:35 -04:00
rijkvanzanten
850937f797 Fix typing in story 2020-06-08 11:41:15 -04:00
rijkvanzanten
ac264b3ff0 Move mock data to storybook folder 2020-06-08 11:38:32 -04:00
Rijk van Zanten
f59c44b443 v-field-template (#680)
* Add use-field-tree composable

* Add v-field-template component

* Remove console.log
2020-06-05 16:46:18 -04:00
rijkvanzanten
06146df21a Fix role/webhook detail title 2020-06-04 18:40:51 -04:00
Rijk van Zanten
df3f6edf83 Many to Many (#675)
* Start on files inteface

* Return related m2m relation in store

* Add useRelations to files

* Fetch current items in files

* Allow dot notation in table row

* Render tableHeaders

* Add file display

* Register file display

* Remove unused css

* Rough in select modal

* Start on saving selected items

* Finish selecting existing item

* Auto fix line width of file display

* Rename var to be clearer

* Rework to allow editing junctino row

* Add support for junction fields in modal detail

* Stage changes to existing items correctly

* Show previously made edits in modal detail

* Blammo bunch of changes, lets do m2m first

* Stage newly created items

* Stage newly created items

* Add editing of newly added records

* Stage new edits of existing items

* Allow updating existing rows

* Stage selection of newly selected items

* Add fetching preview for related item

* Allow for updating staged selected existing items

* Fix nested m2o in m2m

* Finish deep fetch of multi-related item

* Finish deselecting of rows

* Add a little note to future self
2020-06-04 18:28:12 -04:00
Jacob Rienstra
a714befce0 Display stories (#668)
* rating

* datetime

* filesize

* image

* mime-type

* user

* Update .storybook/decorators/full-width.ts

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-06-04 15:02:09 -04:00
Jacob Rienstra
90d01a5ed6 Fixes (#665)
* search input colors

* import tinymce icons
2020-06-04 14:49:12 -04:00
rijkvanzanten
a9a337d82b Fix prop definition 2020-06-04 14:48:52 -04:00
Jacob Rienstra
827d6325fc Keyboard Shortcuts (#658)
* mod a on tabular

* save on item detail

* shortcut composable

* Remove test, add readme

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-06-04 14:46:53 -04:00
Ben Haynes
c38e167069 Tweaks (#659)
* user component styling

* badge alignment

* selected checkbox label color

* add commit node custom icon

* fix translation key

* cleaner badge centering

* clean up last comment spacing

* style cleanup, badges for revision/comment count

* button styling

* fix tags styling

this supercedes the fix by jacob

* divider icon positioning

* correct help text

* remove docs module

* updated help text and other tweaks

* WIP: add heading and subheading to all modals

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-06-04 14:27:19 -04:00
Rijk van Zanten
4c2f5dc2ba Change print width to 120 (#671)
* Increase line-width to 120

* Auto-fix 100->120 columns
2020-06-01 16:50:08 -04:00
Rijk van Zanten
6209a2a89b Translations interface (#660)
* Pass scope onto group in v-item

* Add translations interface
2020-05-28 16:49:31 -04:00
Rijk van Zanten
8f98e6f611 Don't render custom nav when empty array (#657) 2020-05-28 09:55:30 -04:00
Rijk van Zanten
88c0b1a7d9 Relational setup (#652)
* Add m2o relational setup

* Fix type check in localType

* wip o2m relational

* Finish relational setup on creation

* Account for m2m type
2020-05-27 18:33:59 -04:00
Rijk van Zanten
d463460548 Leave navigation guard (#633)
* Add leave navigation guard to collections module

* Add leave guard to users module

* Add leave navigation guard to file detail
2020-05-26 14:10:18 -04:00
Jacob Rienstra
c418b5a2fe Code Interface (#598)
* first draft

* reworked to dynamically load modes.i think it works but im not totally sure tbh

* style fixes

* dynamic imports with some missing .d.ts files

* not sure about binding of value

* Update codemirror / types

* Update code story

* Add code interface translation strings

* Fix typing issues, use correct translation

* Update styling, fix tests

* Set language on init

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-26 12:39:52 -04:00
Jacob Rienstra
1786629718 Minor fix (#630) 2020-05-26 11:25:42 -04:00
Rijk van Zanten
b01e1b0ce6 Use system revert endpoint (#632) 2020-05-26 11:23:44 -04:00
Ben Haynes
3e5a9fe7c4 user component styling (#617)
* user component styling

* badge alignment

* selected checkbox label color

* add commit node custom icon

* fix translation key

* cleaner badge centering

* clean up last comment spacing

* style cleanup, badges for revision/comment count

* button styling

* Update src/modules/settings/routes/data-model/fields/components/fields-management/fields-management.vue

* Update src/modules/settings/routes/data-model/fields/components/fields-management/fields-management.vue

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-05-26 11:10:13 -04:00
Rijk van Zanten
787efb8d6e Fix image size in user detail page header avatar (#631) 2020-05-26 11:08:30 -04:00
Ben Haynes
ebd78f86fc Tweaks (#615)
* checkbox inactive styling

* fix options

* fix translation

* dropdown placeholder default

* cleanup text input options

* roles layout setup

* add placeholder option to dropdown

* add translations

* info on global settings

* elipses after placeholders

* update to bytes for better formatting control

* clean up mime type displays

* new template formatting

* WIP info and help sidebar

* add support for svgs

* user popover styling

* have un-styled logo spinner feel centered

* consistent missing avatar colors

* fix asset url

* add info drawers

* initial help drawer

* WIP add help components to all pages

* Remove non-existing trim

* Fix file interface deselect

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-05-22 18:19:33 -04:00
Rijk van Zanten
2bf4ce9af7 Add 2fa input on login (#616) 2020-05-22 17:59:28 -04:00
Rijk van Zanten
085f6dc581 Module collections override (#614)
* Fix errors in repeater

* Use custom module listing in sidebar

* Refresh user store on role update

* Add custom module info to type

* Add collections interface

* Add collections interface translations

* Add collections listing types

* Use custom collections listing in collections module nav

* Remove outdated nav test
2020-05-22 17:04:20 -04:00
Rijk van Zanten
82d4210ff3 Add user detail page header art (#613) 2020-05-22 16:02:20 -04:00
Rijk van Zanten
df2587810c Revisions flow (#612)
* WIP rework revisions, fetch data

* Render revision items in sidebar

* Show created externally

* Install diff

* Add strings for revisions modal

* Allow slot to override subtitle in modal

* Add tabs content to revisions modal

* Add revert button
2020-05-22 15:45:35 -04:00
Rijk van Zanten
dbe4d319a9 Fix project chooser not closing on click (#611) 2020-05-22 11:36:51 -04:00
Rijk van Zanten
3c6db9b8f0 Dynamic favicon (#607)
* Fix favicon path in dev mode

* Add favicon that matches project brand color
2020-05-21 18:16:12 -04:00
Rijk van Zanten
0347426e12 Interface single file (#605)
* Start on file interface

* Add preview icon

* Add readable mimetypes to extension

* Add file interface strings

* Fix type errors

* Add file select / deselect

* Add new file upload support

* Add import from url

* Fix loading state of url import

* Add filename in download attribute

* Replace option names with replace when file exists

* Remove / fix outdated tests
2020-05-21 16:47:01 -04:00
Rijk van Zanten
7b2cb9d329 Fix project logo, use unbranded spinner (#602)
* Use asset URL in logo / public pages

* Use correct project logo in module bar

* Use unbranded loader state
2020-05-21 11:00:22 -04:00
Rijk van Zanten
66e6af7a3d User popover (#599)
* Change large/x-large sizes

* Force update to popper on content change

* Use smaller size avatar in module bar

* Make the readme up to date

* Add support for trigger / delay props on v-menu

* Add user-popover component, use in comments drawer detail

* Add loading state to user popoer

* Fix trigger target in comments drawer etail item header
2020-05-20 16:38:31 -04:00
Rijk van Zanten
3f9d5d7d96 Add SSO flow (#595)
* Store / parse sso providers in project info

* Render sso provider links on login form

* Provide path to api on sso

* Finish SSO

* Fix user detail route

* Accept string error codes

* Rename color->type, fix old v-notices

* Add adding user string

* Fix reading order in v-menu
2020-05-19 18:02:04 -04:00
Rijk van Zanten
0c745a6eee Switch to history mode in app (#594)
* Switch to history mode in pp

* Remove broken tests

* Install asset manifest

* Only build to modern

* Remove override files in favor of settings

* Build assets json

* Use dynamic routing based on api basepath

* Remove override files

* Set webpack public path based on passed window var

* Fix tests
2020-05-19 17:16:44 -04:00
Rijk van Zanten
c552364d1f Display mime type (#593)
* Install mime-types

* Add mime-type display
2020-05-19 14:09:34 -04:00
Rijk van Zanten
49d9a6a698 Add filesize display (#592) 2020-05-19 13:50:14 -04:00
Ben Haynes
9acfc06528 add notice interface
and update v-notice accordingly
2020-05-18 13:48:58 -04:00
Rijk van Zanten
feaafe6440 109 tiny tweaks (#574)
* no cursor when disabled

* consistent disabled styling

* divider icon alignment

* don’t show last item’s border

* notifications spacing

* status placeholder

* default status icon placeholder

* fix textarea focus style

* tags styling

* proper tags padding when empty

* proper input number step hovers

* show background color

* Fix data-model collections overview name class

* Don't use display template for batch mode

* Fix headline being hidden

* Use formatted name fo bookmarks breadcrumb

* Move drawer open to app store

* Fix tests

* slider value style

* Add comments to users/files

* Make comments selectable

* Move window width drawer state to app parent

* Fix private user condition

* Allow relationships to system collections

* Refresh revisions drawer detail on save and stay

* Add disabled support to m2o / user

* Center v-infos

* Hide default drag image

* Ellipsis all the things

* Use icon interface for fallback icon

* Render icons grid based on available space

* Fix ellipsis on cardsl

* fix batch edit checkbox styling

* Let render template ellipsis its raw values

* Fix render template

* Default cropping to current aspect ratio

* missing translation

* secondary button style

so sorry, rijk… it’s the only one (promise)

* Add image dimensions, add drag mode

* track the apology

* no elipses on titles

* Add cancel crop button

* Only show new dimensions on crop

* Inform file preview if it's in modal

* preview styling

* Install pretty-bytes

* Show file info in drawer sidebar

* Use outline icons in drawer sidebar

* don’t confuse null with subdued text value

* edge-case justification

* Show character count remaining

* Fix storybook + typing error

* Add length constraints to color

* Watch value prop

* Fix tags

* Open icon on icon click

* Fix overflow of title

* Show batch editing x items

* Fix edits emptying input on cancel

* Don't count locked filters in no results message

* simple batch edit title

* Fix headline being invisible

* Add no-options notice to interfaces/displays

* Use existing collection preset in browse modal

* Don't emit null on invalid hex

* Use correct titles in modal-detail

* style char remaining

* file info sidebar styling

* Another attempt at trying to make render template behave in any contetx

* Show remaining char count on focus only

* Remove fade, prevent jumping

* Render skeleton loader in correct height

* Fix o2m not fetching items

* Pass collection/field to render display in o2m

* Add no-items message in table

* Add default state to v-table

* Allow ISO8601 in datetime interface

* Title format selected icon name

* avoid blinking bg on load

* align characters remaining

* Default to tabular in browse modal

* Add disabled string

* Add center + make gray default notice

* Add disabled-no-value state

* Export getItems

* Expose refresh method on layouts

* Fix (batch) deletion from browse)

* Fix interface disabled on batch

* Add interface not found notice

* Add default label (active) for toggle interface

* Use options / prop default for toggle

* Support ISO 8601 in datetime display

* Render edit form in form width

* Fix deselecting newly selected item

* Undo all selection when closing browse modal

* Fix deselecting newly selected item

* wider divider

* update webhooks table

* Fix checkbox label disappearing

* Fix tests.. by removing them

Co-authored-by: Ben Haynes <ben@rngr.org>
2020-05-15 18:44:21 -04:00
Jacob Rienstra
c222e2123d Tags interface (#556)
* afirst draft

* mtag adding works, chekcing for bugs

* fixed it

* readme

* fixes

* Finish tags

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-13 19:31:30 -04:00
Jacob Rienstra
536967553c Color Interface (#531)
* styling for color inputs....messy

* values line up

* color swatch

* color picker working html

* hsl

* hsl works!

* added preset option kinda (needs repeater)

* added color preset colors pretty

* Fix input up/down

* Remove empty test file

* Remove deprecated prop on v-menu

* fixed portal and click outside

* Add color placeholder text

* Emit color value on every type of change

* Rename middleware

* Remove empty readme

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-13 19:13:11 -04:00
Rijk van Zanten
bac71cdc48 Form batch toggle fix (#571)
* Lint css files as well

* Fix batch mode toggle on fields

* Fix display handler function rendering in display
2020-05-13 18:52:35 -04:00
Rijk van Zanten
276021657d Various collection/field setup tweaks (#570)
* Add no collections notice to settings

* Use db safe inputs for name / primary key field

* Only show filter notice when there are items

* Move english strings to translations

* Fix padding top

* Fix dialog in menu

* Add note on dialog in menu

* Save UUID field as type uuid

* Restructure fields management

* Tweak active state / colors

* Fix field-duplicate
2020-05-13 18:31:22 -04:00
Ben Haynes
f780152a7d Various tweaks (#567)
* better button text alignment

* don’t wrap page title

* filter placeholders

* Update src/views/private/components/filter-drawer-detail/filter-input.vue

* Update src/lang/en-US/index.json

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-05-13 17:00:32 -04:00
Rijk van Zanten
860a062dff Minor tweaks in installation (#566)
* Don't show super admin password while loading

* Allow tab key in slug input (for tabbing to another field)

* Don't show project chooser arrow when 1 project
2020-05-13 14:47:42 -04:00
Ben Haynes
d715f86b34 Combine layout options (#563)
* icon width

* updated pagination style

* file preview zoom

WIP — shouldn’t show up on MODAL preview

* overlay/modal close button styling

* duplicate key

* bookmark styling

* card fade

also adds an rgb value for the page background variable

* style per page dropdown

* cards per page dropdown color

* inset non-dense notifications within sidebar

* reduce border radius for xs avatars

* hide non-expanded prepend/append

* reduce sidebar padding

this gives content a bit more room

* WIP: split and update comments and revisions

work in progress

* fix collections module name

* fix file library title

* consistent border on disabled

* fix title/breadcrumb positioning

* breadcrumb fixes

* add “open” button to image interface

WIP — this needs the actual logic, and we might want to remove a button

* hide presets delete until selection

* image shadow and subtext color

* Remove breadcrumb calculation

* increase contrast for image subtitle

* fix textarea hover style

* Update src/modules/collections/index.ts

* Fix typing of translateresult to format

* Add undefined check to collection name

* Put v-if on dialog instead of button

* Remove breadcrumb logic

* Remove breadcrumb calculation

* Rename shadow to collapsed in header bar

* fix rating star display going over table header

* show collection breadcrumb for bookmarks

WIP — needs the formatted collection title

* shorter error to avoid wrapping

* remove periods

* new grid layout icon

* better inline divier text styling

* add v-detail and update layouts to use it

* Finish readme of detail

* Use translations for default value in title

* Add layout options translation

* Don't have margin on base component

* Add margin to v-detail

* Remove duplicated style

* Update src/layouts/cards/cards.vue

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-13 14:06:14 -04:00