Commit Graph

249 Commits

Author SHA1 Message Date
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
Ben Haynes
7aa4911caa Various style tweaks (#555)
* 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

* Fix standard font-size of divider label, use large in interface

* Add extra date format strings

* Structure comments, support date headers

* Add ability to delete comments

* Add edited on status badge

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-12 20:10:48 -04:00
Rijk van Zanten
38454dc2a4 Fix editor size, init without crop (#558) 2020-05-12 12:10:20 -04:00
Rijk van Zanten
fb43a5dde9 Split up v-form, add repeater (#557)
* Add translation strings

* Move type styles to mixins

* Add repeater interface

* Prevent stepper buttons when disabled

* Split up v-form

* Support disabled in repeater
2020-05-12 12:00:16 -04:00
Rijk van Zanten
5c00ddddb1 Display template display template display (#551)
* Add util to find related collection

* Allow display.fields to be function

* Return fixed relation for user types

* Pass type / collection / field to displays

* Add template display

* Finish display template display template display
2020-05-11 17:05:11 -04:00
Rijk van Zanten
648c2a4e0b Add user interface (#549) 2020-05-11 13:23:41 -04:00
Rijk van Zanten
62ef2bb59a Optimize slug/db-safe modes on v-input, add slug interface (#548)
* Optimize slug functionality

* Add slug interface
2020-05-11 12:58:07 -04:00
Rijk van Zanten
631d152c79 Various (#543)
* Fix default size of cards

* Fix layout picker not auto closing

* Fix cards getting huge when theres less than 1 row
2020-05-08 18:27:59 -04:00
Rijk van Zanten
e3120afc7d Fix cp duplication and default values (#542)
* Fix cp duplication and default values

* Fix tests
2020-05-08 17:43:46 -04:00
Rijk van Zanten
f1132168ee Date display (#541)
* Add datetime display

* Pass type to displays

* Fix types
2020-05-08 17:33:12 -04:00
Rijk van Zanten
45c01b6a64 Fix collection race condition + search pagination (#540) 2020-05-08 16:51:14 -04:00
Rijk van Zanten
c08d9ccfe2 Hash (#539)
* Add placeholder color css var

* Add hash interface
2020-05-08 15:58:51 -04:00
Rijk van Zanten
828d81e044 Collection presets (#538)
* Fix table select all

* Fix defaulting + staging changes on new preset

* Navigate to bookmark after creation

* Support exact prop on v-list

* Use exact links in browse

* Show bookmark title when on bookmark

* Force layout refresh on navigation change

* Allow numbers in v-badge

* Add edit bookmark string

* Rename add-bookmark to bookmark-add

* Add bookmark-edit

* Save name changes to bookmark
2020-05-08 15:33:54 -04:00
Rijk van Zanten
9e5c0f0078 Inline select (#537)
* Add inline mode support to v-select

* Use inline selects on tabular/cards
2020-05-08 14:09:06 -04:00
Rijk van Zanten
a070a25353 Field setup (#536)
* Use the correct table header widths for settings / colections

* [WIP] Rework field setup flow

* Finish setup actions logic

* Remove old field-setup

* Use fixed strategy in popper, render to portal

* Stop relying on no-overflow mode

* Stop propagation of outside click event

* Finish field setup, start on relational setup

* Finish up v-menu

* Add relational m2o markup

* Add relational m2o markup

* Remove empty source, fix codesmell
2020-05-08 14:07:00 -04:00
Rijk van Zanten
caaf4244b7 Improve v-menu performance (#534)
By not rendering the popper content, we can vastly improve rendering performance for the v-form.
2020-05-07 18:28:15 -04:00
Jacob Rienstra
f06a56bc4c fixes for numeric and icon readme (#527) 2020-05-07 11:21:39 -04:00
Rijk van Zanten
0c17735e0e Interface one to many (#533)
* Extract edit modal to standalone component

* Fix creating new item from m2o edit modal

* Rename item-modal to modal-detail

* Extract selection modal in standalone component

* Add required primary-key prop to v-form

* Add inline prop to table

* Fetch items in o2m

* Accept numbers for primary key in v-form

* Use correct collection in render template in m2o

* Render modal detail

* Fix edit existing

* Add add-new

* Do things

* Finish o2m
2020-05-07 10:53:51 -04:00
Rijk van Zanten
70c3f05050 Interface many to one (#524)
* Start on m2o

* Render preview in m2o

* Add icons

* Style inline icons

* Add editing modal

* Disable any linter

* Add add-new button

* Pass existing selection on to layout

* Update v-table to allow for keys-only-selection

* Fix batch on tabular
2020-05-05 14:22:01 -04:00
Rijk van Zanten
622570cc45 Add presets settings (#517)
* Add shared component creation modal

* Add bookmark strings

* Expose save-as-bookmark method

* Fix typing of filter

* Add save bookmark button

* Add presets browse page

* Add select / delete functionality

* Render null value in layout as value-null

* Start on presets detail view

* Render presets detail view

* Save view options correctly

* Add readonly mode to cards layout

* Add layout drawer to presets detail

* Add delete on detail

* Add empty state

* Fix linter warnings
2020-05-04 12:31:11 -04:00
Rijk van Zanten
31ef7a48c9 Various fixes (#515)
* Fix image deselection when newID isn't set

* Fix svg support in image interface

* Render correct title on file library detail

* Default to interfaces based on type

* Remove unused import

* Don't show dropdown indicator on field label when readonly

* Accept datetime_created datetime_updated in datetime interface

* Add reused value-null component

* Fix z-index of v-badge

* Close status on content click

* Move edit button to header on file detail

* Increase tooltip z-index

* Add warning notice to edit image modal

* Fix extra spacing in divider interface

* Use wide style for notifications when drawer is open

* Click on image to open file preview
2020-05-01 18:08:37 -04:00
Ben Haynes
4dabcc6a25 Various style tweaks (#513)
* true title alignment

not sure why, but normal was optically best for me

* flip dropdown arrow when open

* flip dropdown arrow and add dot contrast

* fix icon expanding label height

keep arrow visible when menu open

* global form size and clean-up file preview

* updated console log

WIP — also includes format for warnings, errors, timing, etc

* add form max width

* fix search input width with value

* style chips

* no arguments

* 00 == 60

* update tags/chip styling

* wysiwyg editor style fixes

* conditional formatting

* seconds option and wip 12h time

* even editor tool spacing

* avoid vertical text clipping

* add circle option to image display

* add circle option to user display

* add circle to translations

* add rating display

* remove log

* button vertical alignment

* correct image width

* polish image styles

* Fix datetime interface

* Use flip transition

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-01 16:01:22 -04:00
Rijk van Zanten
a2f04f4c28 Fix v-menu active state (#514) 2020-05-01 15:08:16 -04:00
Jacob Rienstra
78951da9de Interface icon (#436)
* icon interface first pass

* icon test

* readme lol

* Fix top placement in attached mode

* Finish icon interface

* Add some padding

* Finishing touches

* Fix tests

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-04-30 23:55:11 -04:00
Rijk van Zanten
27c7c055da Interface image (#510)
* Add format filesize util

* Move and tweak file-preview

* Add file lightbox componetn

* WIP add image interface

* Add download prop option to v-button

* Add active model support to image editor

* Add functionality for buttons

* Add deselect button

* Add upload lang

* Fix translations of upload notifications

* Fix local vs global dropzone

* Add v-upload component

* Finish image interface
2020-04-30 17:01:14 -04:00
Rijk van Zanten
dde5517c74 Add user display (#509) 2020-04-30 11:54:53 -04:00
Rijk van Zanten
e8206b06a2 Rename compositions to composables (#508)
* Rename compositions to composables

* Rename test helper, replace some other occurances

* Log error to console
2020-04-30 10:15:32 -04:00
Rijk van Zanten
0253cc9d93 Image display (#505)
* Add adjust for displays util

* Adjust fetched fields for configured options

* Add padding to table rows

* Add image display

* Rename Query to Options

* Fix codesmell
2020-04-29 18:44:13 -04:00
Rijk van Zanten
0bf32c230b Fix file drop, again (#504) 2020-04-29 17:09:07 -04:00
Rijk van Zanten
4b7fcb79fa Add reusable image editor modal (#503)
* Install cropperjs

* Add cropper js styles

* Add editing image string

* Track inner active state

* Add temp edit button

* Start on image editor modal

* Add custom icons for image manipulation

* Add image manipulation strings

* Tweak cropper styles

* Remove unused import

* Save as blob

* Expose getItem method for manual refreshes

* Add cache-busting to file preview

* Use new API post endpoint, emit refresh event on success

* Add a cache buster to the image editor
2020-04-29 16:44:34 -04:00
Rijk van Zanten
b5d6fdefa2 Add date(time) interface (#499)
* Add localized-format util

* Add active prop to v-input

* Add strings for datetime interface

* Add overflow-scroll prop to v-menu

* Add close-on-content-click prop to v-select

* Add datetime interface

* Show display value synced with prop

* Sync value with prop

* Set lang after user hydration

* Add NL date-fns lang to test datetime

* Fix locale fetching in date-fns

* Dont stage value if year isnt fully filled out

* Localize date fns based on shared util

* Handle type, render type based display

* Don't use exact on v-list-item

* Pass type to interface on v-form
2020-04-29 10:00:22 -04:00
Rijk van Zanten
fcbe0af502 Fix item count (#500)
* Use item count instead of total count in header indicator

* Fix duplicate export
2020-04-29 09:31:42 -04:00
Rijk van Zanten
bdd45946d6 Remove trim from v-input (#496) 2020-04-28 10:13:32 -04:00
Rijk van Zanten
47b860adf3 Fix sorting logic for manual sort (#495) 2020-04-27 19:11:53 -04:00