Matt Baer
a96d4474ef
Add auto-save to WYSIWYG editor
2020-09-09 17:46:47 -04:00
Matt Baer
a7190795f7
Output prose.bundle.js to static/js/ dir, instead of dist/
2020-09-09 10:47:01 -04:00
Matt Baer
70dbfcfba4
Fix webpack build issues
...
This upgrades @babel/preset-env to 7.9.0 from 7.8.7.
See: https://github.com/nodejs/node/issues/32852#issuecomment-613655150
2020-09-09 10:45:04 -04:00
Matt Baer
da8c08668f
Fix whitespace in prose.js
2020-09-09 10:02:00 -04:00
Matt Baer
61daca2b0d
Merge branch 'develop' into wysiwyg
2020-09-09 09:53:38 -04:00
Matt Baer
7c1244e6b1
Merge pull request #381 from writeas/fix-testpostlede
...
Truncate post lede at question mark
2020-09-04 16:36:14 -04:00
Matt Baer
c31a87fb76
Merge pull request #336 from Antolius/static-assets-cache-control
...
Add Cache-Control header
2020-09-04 16:12:29 -04:00
Josip Antoliš
1b1d3064c9
Move cacheControl func into handle.go file
2020-09-04 22:03:42 +02:00
Josip Antoliš
3f36ede885
Add Cache-Control header
...
Add Cache-Control response header for static files in order to improve page loading speed.
Fixes #322
2020-09-04 22:03:42 +02:00
Matt Baer
a8a6525006
Merge pull request #377 from writeas/dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.4
...
Bump github.com/microcosm-cc/bluemonday from 1.0.3 to 1.0.4
2020-09-02 10:20:30 -04:00
Matt Baer
98d88b9a4b
Truncate lede at question mark
...
This fixes TestPostLede and closes #316 .
2020-09-02 09:38:02 -04:00
Matt Baer
ac90cb2c80
Fix panic in TestViewOauthCallback
2020-09-02 09:33:16 -04:00
dependabot[bot]
00a5a4f7ab
Bump github.com/microcosm-cc/bluemonday from 1.0.3 to 1.0.4
...
Bumps [github.com/microcosm-cc/bluemonday](https://github.com/microcosm-cc/bluemonday ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/microcosm-cc/bluemonday/releases )
- [Commits](https://github.com/microcosm-cc/bluemonday/compare/v1.0.3...v1.0.4 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-09-01 19:42:11 +00:00
Matt Baer
505b124db7
Merge pull request #379 from writeas/dependabot/go_modules/github.com/mattn/go-sqlite3-1.14.2
...
Bump github.com/mattn/go-sqlite3 from 1.14.0 to 1.14.2
2020-09-01 15:40:35 -04:00
Matt Baer
f75d4cb75d
Merge pull request #327 from Dar13/add-cors-headers-public-api
...
Add CORS header ('Access-Control-Allow-Origin') to public APIs
2020-09-01 15:01:33 -04:00
dependabot[bot]
21579cfa71
Bump github.com/mattn/go-sqlite3 from 1.14.0 to 1.14.2
...
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3 ) from 1.14.0 to 1.14.2.
- [Release notes](https://github.com/mattn/go-sqlite3/releases )
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.0...v1.14.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-09-01 13:41:01 +00:00
Matt Baer
62d29166f4
Merge pull request #376 from writeas/dependabot/go_modules/github.com/gorilla/schema-1.2.0
...
Bump github.com/gorilla/schema from 1.1.0 to 1.2.0
2020-09-01 09:39:26 -04:00
dependabot[bot]
e60398f0b4
Bump github.com/gorilla/schema from 1.1.0 to 1.2.0
...
Bumps [github.com/gorilla/schema](https://github.com/gorilla/schema ) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/gorilla/schema/releases )
- [Commits](https://github.com/gorilla/schema/compare/v1.1.0...v1.2.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-09-01 06:32:10 +00:00
Matt Baer
ce69117c79
Merge pull request #371 from writeas/design-update
...
Navigation improvements
2020-08-31 18:21:41 -05:00
Matt Baer
d8019bba0d
Merge pull request #370 from writeas/oauth-cleanup
...
OAuth tidy-up and refactor
2020-08-31 17:08:33 -05:00
Matt Baer
820c5ae557
Remove Admin link from header on Account Settings page
2020-08-19 18:22:11 -04:00
Matt Baer
3a915ad8ea
Make New Post button contextual on coll sub-sections
2020-08-19 18:21:53 -04:00
Matt Baer
8d27ee6d99
Only show "New Post" button in coll. nav bar on Blogs page
2020-08-19 18:20:26 -04:00
Matt Baer
6f8d70043f
Move coll. navigation to main header for single-user sites
...
This uses the main navigation bar for the Customize and Stats pages, instead of the collection-navigation bar used for multi-user / multi-collection instances.
2020-08-19 18:19:28 -04:00
Matt Baer
9d0ba2bed4
Add contextual blog menu
2020-08-19 17:09:47 -04:00
Matt Baer
cef51a7797
Remove accidental #user-nav color
2020-08-19 16:56:26 -04:00
Matt Baer
0ed9c9c746
Add inter-blog navigation
...
This makes it easier to navigate between different blog sections: Customize, Stats, View.
2020-08-19 16:24:37 -04:00
Matt Baer
217430e56b
Redirect user to /me/settings on cancelled OAuth flow
2020-08-19 15:40:07 -04:00
Matt Baer
7a09a47de2
Include OAuth buttons on signup-via-invite page
2020-08-19 15:20:13 -04:00
Matt Baer
455e50c9a8
Use branded OAuth buttons
...
This includes the platform mark with each login button and uses
brand colors. It also uses the same style on the Account Settings
page. And it wraps buttons on login / signup pages.
2020-08-19 15:14:29 -04:00
Matt Baer
a78b36b871
Fix whitespace in user/settings.tmpl
2020-08-19 14:55:16 -04:00
Matt Baer
00cceca104
Update signup-via-invite page
...
This updates signup.tmpl to include all supported OAuth methods and respect the new `DisablePasswordAuth` config value.
2020-08-19 13:35:21 -04:00
Matt Baer
4db2cb8986
Templatize OAuth buttons across signup and login pages
...
This moves fields into the `OAuthButtons` struct and puts the buttons into templates/includes/oauth.tmpl.
2020-08-19 13:31:07 -04:00
Matt Baer
a773d94dc7
Reorder Gitea fields and structs in config.go
2020-08-19 13:26:15 -04:00
Matt Baer
04d404e61f
Move text OAuth button styles to login.less
2020-08-19 12:38:44 -04:00
Matt Baer
21e9b4a667
Run `go fmt` on database.go
2020-08-19 12:29:23 -04:00
Matt Baer
63f023ea98
Fix GitLab & OAuth button labels on Login page
...
Previously, these display names were swapped.
2020-08-19 12:04:36 -04:00
Matt Baer
ab32caa49c
Include key names in Login page struct
2020-08-19 12:02:36 -04:00
Matt Baer
95273697f4
Use consistent server User-Agent across application
2020-08-18 12:22:04 -04:00
Matt Baer
dfa14c9c92
Merge pull request #317 from pascoual/feature/generic-oauth
...
Login with generic oauth feature++
2020-08-17 14:24:50 -04:00
prichier
ab285644a0
Fix: signup methods mutually exclusive
2020-08-16 20:42:55 +02:00
Pascal Richier
d3f1e40010
Merge branch 'develop' into feature/generic-oauth
2020-08-16 19:58:01 +02:00
Matt Baer
7e3eb9a87b
Merge pull request #319 from writeas/silo-mentions
...
Support AP-style mentions of centralized social media accounts
2020-08-13 12:36:42 -04:00
Matt Baer
7fa78c2255
Move fakeAPInstances to web-core/silobridge package
...
This adds support for mentioning profiles on the following sites:
- deviantart.com
- facebook.com
- flickr.com
- github.com
- instagram.com
- reddit.com
- wattpad.com
- youtube.com
2020-08-13 12:33:35 -04:00
Matt Baer
c16414843a
Merge pull request #368 from writeas/RJ722-217-fix-h2-size
...
Use a bigger font size for h2
2020-08-13 12:24:41 -04:00
Matt Baer
b2382b5422
Merge pull request #293 from gytisrepecka/oauth-gitea
...
Added Gitea OAuth login and account management.
2020-08-13 10:41:29 -04:00
gytisrepecka
731d4e8efe
Run gofmt for modified files.
2020-08-13 09:15:04 +03:00
Matt Baer
fd3a6399b3
Merge pull request #355 from writeas/accessible-dropdowns
...
Add menu hover delay
2020-08-12 13:51:08 -04:00
Matt Baer
8b243e119f
Change post page h2 size to 1.4em
2020-08-12 13:48:48 -04:00
Matt Baer
0c8b779afb
Merge branch '217-fix-h2-size' of https://github.com/RJ722/writefreely into RJ722-217-fix-h2-size
2020-08-12 13:42:57 -04:00