196 Commits

Author SHA1 Message Date
Caleb
69ee5ecc78 Fix GitLab Implicit OAuth (#1439) 2018-06-14 10:54:53 -04:00
Benaiah Mischenko
b65f68efd4 GitLab backend built with cursor API (#1343) 2018-06-11 22:03:43 -04:00
Caleb
0022df57d2 Check for title/slug field on config load. (#1203) 2018-05-25 12:15:01 -04:00
Shawn Erquhart
643772cd1a Revert "Prevent Overwriting Files with Same Slug Names (#1239)"
This reverts commit 9a1c668e00a0f2cfd2dfbcf0ff1b642c54c1b1bd.
2018-05-24 09:23:55 -04:00
Chris Swithinbank
8ab5ca560c Enable user-configured commit message templates (#1359) 2018-05-23 16:57:56 -04:00
Brian Macdonald
9a1c668e00 Prevent Overwriting Files with Same Slug Names (#1239) 2018-05-23 16:50:04 -04:00
Caleb
55a24a75c1 Fix large files failing to load. (#1224) 2018-05-17 12:05:37 -04:00
Caleb
80817e2157 Prevent login if Git Gateway is disabled. (#1295) 2018-05-15 18:34:42 -04:00
Chris Swithinbank
04087026dd Add squash merges option for editorial workflow (#1330) 2018-05-14 11:46:37 -04:00
Shawn Erquhart
855bfde79b
allow custom auth endpoint (#1294) 2018-04-24 21:35:56 -04:00
Shawn Erquhart
3e9f446ba0
fix github auth button icon alignment (#1299)
Partial revert of #1227.
2018-04-20 15:04:13 -04:00
Shawn Erquhart
df7486333b allow login screen to be skipped for test repo demos 2018-04-19 13:11:42 -04:00
Caleb
db292abe03 Fix actual code errors listed by linter. 2018-04-12 14:17:42 -07:00
Maciej Matuszewski
df2d5c2432 fix: button alignment on older safari (#1227)
* Fix button alignment on older safari

* Add @maciejmatu to contributors
2018-04-12 08:15:11 -06:00
S. Suzuki
100f56220c Feature Reuest: Append slug: hour, minutes, secounds (#1207) 2018-04-05 08:16:18 -06:00
Shawn Erquhart
e9153a3841 enable editorial workflow for test backend 2018-04-04 14:35:44 -04:00
Caleb
5e040eec62 Fix broken new media uploads in Git Gateway. (#1221)
* Use file data instead of inferring path for new uploads.
2018-04-04 14:30:31 -04:00
Caleb
085c88e2b8 Prevent Git Gateway users with invalid tokens from logging in. (#1209)
* Prevent Git Gateway users without permission from login.

* Handle Git Gateway token expiry explicitly.

This often happens when a user changes a repo from public to private, so
we want to make that specific case very clear.
2018-03-28 14:08:23 -04:00
Shawn Erquhart
600400cfda filter workflow entries by pr base branch 2018-03-28 11:22:34 -04:00
Caleb
cd10a713d8 Add option to strip Unicode from entry filenames (#1135) 2018-03-27 18:56:10 -04:00
Luís Miguel
2475af1870 Fix thumbs for new uploads to private repos 2018-03-27 16:46:38 -04:00
Luís Miguel
2d89cc7bfe (Optimization) Remove redundant filter call 2018-03-27 14:08:55 -04:00
Luís Miguel
8e2fefc3f7 (Bugfix undefined id) Use file sha as id 2018-03-27 14:08:55 -04:00
Caleb
95b6d8a884
Fix collection failure if entry fails. (#1093) 2018-03-05 16:31:05 -07:00
Shawn Erquhart
2a3b2d19fe ignore unpublished entries from unknown collections 2018-03-03 22:39:49 -05:00
Caleb
c765cb0b76 Support extensions with multiple parts (i.e. en.md) (#1123)
* Support extensions with multiple parts (i.e. `en.md`)

* Strip entire extension from slug, not just last extension.

* Clean leading periods from extensions.
2018-02-27 17:23:20 -05:00
Caleb
756d562c66 Support writing frontmatter in multiple formats (#933)
* Format JSON files.

Currently we store JSON as a single line in files. We should prettify it
like we do the other formats.

* Add output parsers to the frontmatter list.

* Cleanup frontmatter format parser options.

* Support writing frontmatter in TOML and JSON.

Right now we can read TOML or JSON frontmatter by inferring,
but we can only write frontmatter in YAML. This change allows the
frontmatter format to be explicitly set for reading and writing.

* Fix frontmatter formatter.

* Update Frontmatter formatter tests.

* Update frontmatter format docs.
2018-01-29 17:35:36 -05:00
Tony Alves
7053ccd8ec Register Internal and Custom backend API's (#1011)
* allow backend register

* handle multiple backends, including internal
2018-01-25 11:55:13 -05:00
Caleb
6ccc253599 Fix showing success message if PR force-merge fails. (#1016) 2018-01-16 18:41:18 -08:00
Eric Jinks
b8c411ce28 GitHub svg media library preview support (#954)
* Append sanitize query to svg download_url

* Add svg ext to media viewable

* Append searchParam manually
2018-01-04 12:17:52 -07:00
Václav Klecanda
b927c8acfb LocalForageTest (#550) 2018-01-04 11:33:18 -05:00
Caleb
035b02bd24 Abstract notif component for auth pages. 2017-12-20 08:52:55 -07:00
Shawn Erquhart
051257aa12 eliminate prop type and validation console warnings 2017-12-07 15:38:06 -05:00
Shawn Erquhart
91307a06ce fix identity auth page styling 2017-12-07 13:03:18 -05:00
Shawn Erquhart
cfbf31b130
WIP - Global UI (#785)
* update top bar and collections sidebar UI

* update collection entries UI

* improve global layout

* merge search page into collection page

* enable new entry button

* search fixup

* wip -initial editor update

* update editor scrolling and markdown toolbar position

* wip

* editor toolbar progress

* editor toolbar wip

* finished basic editor toolbar

* add standalone toggle component

* improve markdown toolbar spacing

* add user avatar placeholder

* finish markdown toggle styling

* refactor icon setup, add new icons

* add new icons to markdown editor toolbar

* remove extra app container

* add markdown active mark style

* relation and text widget styling

* widget design updates, basic list/object design update

* widget style updates, image widget improvements

* refactor widget directory, fix file removal

* widget focus styles

* finish editor widget focus styles

* migrate media library modal to react-modal

* wip - migrate editor component form to modal

* wip - move editor component form to modal

* wip - embed plugin forms in the editor

* inline shortcode forms working

* disable react hot loading, its breaking things

* improve shortcode form styles

* make shortcode form collapsible, improve styling

* add close functionality to shortcode blocks

* improve base media library styling

* fix shortcode label

* migrate unstyled workflow to new UI

* wip - reorganizing everything

* more work moving everything

* finish more moving and eliminating stuff

* restructure, remove react-toolbox

* wip - removing old stuff, more restructure

* finish restructure

* wip - css arch

* switch back to test repo

* update react-datetime to ^2.11.0

* remove leftover react-toolbox button

* more restructuring clean-up

* fix UI component directory case

* wip -css editor control style

* wip - consolidate widget styles

* wip - use a single control renderer

* fixed object values breaking

* wip - editor control active styles

* pass control wrapper to widgets

* ensure branch name is trimmed

* wip - improve widget authoring support

* import Map to Widget component

* refactor toolbar buttons

* wip - more widget active styles

* break out editor toggle component

* add local scroll sync back

* update editor toggle icons

* limit editor control pane content width

* fix editor control spacing

* migrate markdown toolbar stickiness to css

* fix markdown toolbar border radius

* temporarily use test backend

* stop markdown toolbar from going to bottom

* restore disabled markdown toolbar buttons for raw

* test markdown widget without focus styles

* more widget updates

* remove card visuals from editor

* disable dragging editor split off screen

* use editorControl component for shortcode fields

* make header site link configurable

* add configurable collection descriptions

* temporarily add example assets

* add basic list view

* remove outdated css mixins

* add and implement search icon

* activate quick add menu

* visualize usable space in editor view

* fix entry close, other improvements

* wip - editorial workflow updates

* some dropshadow and other CSS tweaks

* workflow ui updates

* add worfklow card buttons

* fix workflow card button handlers

* some dropshadow and other CSS tweaks

* make workflow board wider

* center workflow and collection views

* add basic responsiveness

* a bunch of fun UI fixes! a BUNCH! (#875)

* give `.nc-entryEditor-toolbar-mainSection` left and right child divs

* a bunch of fun UI fixes! a BUNCH!

* remove obscure --buttonShadow

* revert to test repo

* fix not found page styling

* allow workflow publishing from any column

* disallow publishing from all columns, with feedback

* fix new entry button

* fix markdown state persisting across entries

* enable simple workflow save and new from editor

* update slug in address bar when saving new entry

* wip - workflow updates, deletion working

* add status change functionality to editor

* wip - improving status change from editor

* editor toolbar back button improvements, loading improvements, cleanup

* progress on the media library UI cleanup

* remove font smothing css

* a quick fix for these buttons

* tweaks

* progress on media library modal— broken FYI

* fix media library functionality, finish migrating footer

* remove media library footer files

* remove leftover css import

* fix media library

* editor publishing functionality complete (unstyled)

* remove leftover loader var from media library

* wip - editor publishing styles

* add status dropdown styling

* editor toolbar style updates

* editor toolbar state improvements

* progress on the media library UI cleanup, style improvements

* finish editorial workflow editor styling

* finish media library styling

* fix config

* add what-input to optimize focus styling

* fix button

* fix navigation blocking for simple workflow

* improve simple workflow publishing

* add avatar dropdown to editor top bar

* style github and test-repo auth pages

* add git gateway auth page styles

* improve editor error styling
2017-12-07 12:37:10 -05:00
Mathias Biilmann
bf6eb2f39a Make sure we strip trailing slashes for dir listing 2017-11-15 12:09:40 -05:00
Shawn Erquhart
7c54fbd0df update integrations check to account for null default state 2017-11-11 21:42:29 -05:00
Shawn Erquhart
0f8a74be13 only rebase EW PR if no asset store
Editorial workflow pull requests are rebased if the base has
changed to ensure that asset changes on the base branch are
reflected in the PR branch, but if an asset store is in use,
no rebasing is necessary because assets are stored outside
of the content repo.
2017-11-11 14:52:04 -05:00
Caleb
41897de4c9 Fix no users being allowed to login when accept_roles set. 2017-11-11 10:34:43 -05:00
Caleb
37a36ffed4 Fix other than markdown editorial workflow entries on dashboard.
When entries were loaded for the editorial workflow dashboard, they were
all assumed to be FrontMatter/MarkDown files. This PR allows them to be
any supported format.
2017-11-11 10:34:29 -05:00
Shawn Erquhart
9c7c0aeed2 fix image not shown after upload for git gateway 2017-11-11 10:33:58 -05:00
Shawn Erquhart
6b45a46a39 add media library
* rebase editorial workflow pull requests when behind

* fix async/await transpilation

* add media library pagination

* switch media library to grid layout

* ensure that only cms branches can be force updated
2017-11-08 15:00:28 -05:00
Caleb
c707228c8f Disable login button while login is in progress. 2017-11-07 12:24:33 -05:00
Richard Pullinger
a14f25355e Add delete flag in configuration (#707)
Adds a `delete` flag to collections in `config.yml`; fixes
#593. Defaults to false. This is mostly for use with files to restrict
users from deleting settings files etc that available via the CMS.
2017-10-30 13:07:54 -07:00
Benaiah Mischenko
7dd8ca13c4 Migrate to plain CSS (remove CSS modules) (#659)
* Migrate to plain CSS (remove CSS modules)

Change `prefixer` to a function instead of a proxy

* Switch prefix to `nc`

* Replace prefixer with literal class names

* Remove prefixer

* Fix migration errors

* fix compose migrations

* Remove unnecessary theme imports

* Remove old CSS import

* fix sticky toolbar positioning

* update to cssnano v4 so preset is used

* fix css pseudo selectors

* update lockfile
2017-10-18 12:29:38 -04:00
Benaiah Mischenko
0a5ec972db Add cachebuster to git-gateway API calls 2017-10-10 12:48:25 -07:00
Caleb
2324f08d69 Rename setUser to restoreUser. 2017-10-09 12:04:05 -06:00
Caleb
e69c8dd3fc Fix broken login when backend changed in config.
If the backend was changed in the config, the user from the old backend
would be passed to the new backend, which could cause errors if the
format was different.
2017-10-09 12:04:05 -06:00
Caleb
53e5dfee7c Check user permissions and metadata every CMS load.
Before, if the CMS was loading user OAuth credentials from
`localStorage`, then user write access would not be checked again.
However, the `config.yml` repo could be changed, which would cause the
user to be still logged in even if they did not have write permissions.
Also, if the user had updated their metadata (avatar, etc.), the CMS
would not update that either.
2017-10-09 12:04:05 -06:00
Caleb
72492749d9 Move slug sanitizer to a seperate function. 2017-10-03 13:03:28 -06:00