Commit Graph

224 Commits

Author SHA1 Message Date
Kevin Ansfield
11bd398b1c Upgrading Casper to 2.3.3 2018-06-14 17:04:15 +01:00
Katharina Irrgang
b392d1925a
Dynamic Routing Beta (#9596)
refs #9601

### Dynamic Routing

This is the beta version of dynamic routing. 

- we had a initial implementation of "channels" available in the codebase
- we have removed and moved this implementation 
- there is now a centralised place for dynamic routing - server/services/routing
- each routing component is represented by a router type e.g. collections, routes, static pages, taxonomies, rss, preview of posts
- keep as much as possible logic of routing helpers, middlewares and controllers
- ensure test coverage
- connect all the things together
  - yaml file + validation
  - routing + routers
  - url service
  - sitemaps
  - url access
- deeper implementation of yaml validations
  - e.g. hard require slashes
- ensure routing hierarchy/order
  - e.g. you enable the subscriber app
  - you have a custom static page, which lives under the same slug /subscribe
  - static pages are stronger than apps
  - e.g. the first collection owns the post it has filtered
  - a post cannot live in two collections
- ensure apps are still working and hook into the routers layer (or better said: and register in the routing service)
- put as much as possible comments to the code base for better understanding
- ensure a clean debug log
- ensure we can unmount routes
  - e.g. you have a collection permalink of /:slug/ represented by {globals.permalink}
  - and you change the permalink in the admin to dated permalink
  - the express route get's refreshed from /:slug/ to /:year/:month/:day/:slug/
  - unmount without server restart, yey
- ensure we are backwards compatible
  - e.g. render home.hbs for collection index if collection route is /
  - ensure you can access your configured permalink from the settings table with {globals.permalink}

### Render 503 if url service did not finish

- return 503 if the url service has not finished generating the resource urls

### Rewrite sitemaps

- we have rewritten the sitemaps "service", because the url generator does no longer happen on runtime
- we generate all urls on bootstrap
- the sitemaps service will consume created resource and router urls
- these urls will be shown on the xml pages
- we listen on url events
- we listen on router events
- we no longer have to fetch the resources, which is nice
  - the urlservice pre-fetches resources and emits their urls
- the urlservice is the only component who knows which urls are valid
- i made some ES6 adaptions
- we keep the caching logic -> only regenerate xml if there is a change
- updated tests
- checked test coverage (100%)

### Re-work usage of Url utility

- replace all usages of `urlService.utils.urlFor` by `urlService.getByResourceId`
  - only for resources e.g. post, author, tag
- this is important, because with dynamic routing we no longer create static urls based on the settings permalink on runtime
- adapt url utility
- adapt tests
2018-06-05 19:02:20 +02:00
kirrg001
c2849728e9 Updated content/settings/README.md
no issue

- the name of the routing type was incorrect
- we have
  1. routes: static routes (or series later)
  2. collections: a collection of posts
  3. taxonomies: configuration for author and tag routes
- see equivalent: https://github.com/TryGhost/Ghost/blob/1.23.1/core/server/services/settings/default-routes.yaml
2018-06-01 19:36:48 +02:00
Kevin Ansfield
91a1732c0f Upgrading Casper to 2.3.2 2018-05-29 16:10:26 +01:00
Kevin Ansfield
0b5ffff53e Upgrading Casper to 2.3.1 2018-05-29 15:45:24 +01:00
Kevin Ansfield
394f90f0e3 Upgrading Casper to 2.3.0 2018-05-22 20:25:03 +01:00
Aileen Nowak
833bb53fec Upgrading Casper to 2.2.1 2018-04-24 11:00:37 +08:00
Aileen Nowak
c8b29724e0 Added content/settings folder
refs #9528
refs TryGhost/Ghost-CLI#681

- added a new `/content/settings` folder
- bumped Ghost-CLI engine requirement to >= 1.7.0
2018-04-15 19:40:22 +02:00
kirrg001
615ecded94 Upgrading Casper to 2.2.0
no issue

- see https://github.com/TryGhost/Casper/releases/tag/2.2.0
2018-04-10 23:32:14 +02:00
Aileen Nowak
9030161db9 Upgrading Casper to 2.1.10 2018-03-16 16:00:33 +07:00
Aileen Nowak
25b4769662 Revert "Upgrading Casper to 2.2.0"
This reverts commit 61a0343be0.
2018-03-16 15:47:58 +07:00
Aileen Nowak
61a0343be0 Upgrading Casper to 2.2.0 2018-03-16 09:54:41 +07:00
Kevin Ansfield
e78f14bd43 Upgrading Casper to 2.1.9 2018-01-23 16:24:20 +00:00
Kevin Ansfield
fddc9a928c Upgrading Casper to 2.1.8 2018-01-03 13:49:21 +00:00
Aileen Nowak
9e60ac639b Upgrading Casper to 2.1.7 2017-11-21 22:09:35 +08:00
Aileen Nowak
4ccdfab8f2 Upgrading Casper to 2.1.6 2017-10-26 19:09:37 +07:00
Aileen Nowak
39fe42a16b Upgrading Casper to 2.1.5 2017-10-24 16:12:12 +07:00
Aileen Nowak
fcef6a53d6 Upgrading Casper to 2.1.4 2017-10-03 18:49:54 +07:00
Kevin Ansfield
2db548a5bc Upgrading Casper to 2.1.3 2017-09-26 16:01:11 +01:00
Aileen Nowak
40a66f650a Upgrading Casper to 2.1.2 2017-09-12 18:48:27 +07:00
kirrg001
86300f605e Upgrading Casper to 2.1.1 2017-09-07 14:36:40 +02:00
Vikas
8606ea22a2 Normalize docs URLs (#8949)
no issue

v1.0.0 is no longer the standard in the docs, so I updated all of the URLs containing it with v1
Note: I tried squashing commits, but failed. I'll try again in the future with throwaway changes
Secondary Note: I tested most of the URLs listed and got no 404s!
2017-08-31 11:45:59 +02:00
Kevin Ansfield
04ba726012 Upgrading Casper to 2.1.0 2017-08-29 13:42:50 +01:00
Kevin Ansfield
905580c710 Upgrading Casper to 2.0.6 2017-08-22 12:41:49 +01:00
Kevin Ansfield
53e716133b Upgrading Casper to 2.0.5 2017-08-17 17:58:10 +01:00
Kevin Ansfield
ce7d0bfd93 Upgrading Casper to 2.0.4 2017-08-15 18:05:23 +01:00
kirrg001
7c0b1bb063 ⬆️ Upgrading Casper to 2.0.3
no issue

- See https://github.com/TryGhost/Casper/releases/tag/2.0.3
2017-08-10 16:16:29 +02:00
kirrg001
b61fa694ef Upgrading Casper to 2.0.2 2017-08-01 10:35:50 +04:00
Kevin Ansfield
7060fa5e35 Upgrading Casper to 2.0.1 2017-07-27 12:31:19 +04:00
Kevin Ansfield
954d85d49f Upgrading Casper to 2.0.0 2017-07-22 17:05:56 +01:00
Aileen Nowak
693c340082 Upgrading Casper: infinite sroll & remove partial 2017-07-11 15:29:58 +07:00
Aileen Nowak
b37411239f Updated Casper: Infinite scroll 2017-07-10 20:43:52 +07:00
kirrg001
c696b1d27a Upgrading Casper: 2.0
no issue
2017-06-22 19:54:45 +02:00
Kevin Ansfield
adfb84847a Upgrading Casper: 1.0 branch is now master 2017-06-08 19:33:11 +01:00
Kevin Ansfield
0f82e49159 📖 1.0.0 update for README.md and CONTRIBUTING.md (#8539)
refs #7421
- simplify README.md to be more use-case oriented and point to https://docs.ghost.org where appropriate
- remove majority of CONTRIBUTING.md content as it now lives at https://docs.ghost.org/contributing
- update adapter guide links in `content/adapters/README.md`
2017-06-08 17:05:27 +01:00
kirrg001
3dce86f532 Upgrading Casper to ghost-1.0: posts_per_page
[ci skip]
2017-06-06 13:07:50 +07:00
Myles Braithwaite
e2dcdd2866 📖 Adapters: Pointing to the correct location (#8507)
no issue
2017-05-31 21:40:59 +02:00
Katharina Irrgang
76bd4fdef6 🙀 Image field naming & new img_url helper (#8364)
* 🙀  change database schema for images
    - rename user/post/tag images
    - contains all the required changes from the schema change

* Refactor helper/meta data
    - rename cover to cover_image
    - also rename default settings to match the pattern
    - rename image to profile_image for user
    - rename image to feature_image for tags/posts

* {{image}} >>> {{img_url}}
    - rename
    - change the functionality
    - attr is required
    - e.g. {{img_url feature_image}}

* gscan 1.0.0
    - update yarn.lock

* Update casper reference: 1.0-changes
    - see 5487b4da8d
2017-04-24 18:21:47 +01:00
Katharina Irrgang
be5b58432b 🎨 change location of adapters (#8286)
closes #7687

- change location from content/storage or content/scheduling to content/adapters/storage or content/adapters/scheduling
- i have added a @TODO to https://github.com/TryGhost/Ghost/issues/7421 to check if both adapter types needs an update in the documentation
2017-04-07 10:53:38 +01:00
kirrg001
8382be1ada Upgrading Casper to ghost-1.0 2017-03-14 18:13:39 +01:00
kirrg001
fdcc66bdbf Upgrading Casper to 1.3.6 2017-03-06 12:33:47 +01:00
kirrg001
49e99c5dfd Upgrading Casper to 1.3.5 2017-01-17 15:49:03 +01:00
Katharina Irrgang
16a726bf1b 🎨 add logs folder to content folder (#7635)
refs #7116

- see comment https://github.com/TryGhost/Ghost/issues/7116#issuecomment-256598791
- add README.md
2016-10-28 14:27:02 +01:00
Hannah Wolfe
ce8517fde0 Upgrading Casper to 1.3.4 2016-10-24 16:57:06 +01:00
Hannah Wolfe
2ca5bc2f35 Upgrading Casper to 1.3.3 2016-10-07 16:13:33 +01:00
Hannah Wolfe
c87e680764 Upgrading Casper to 1.3.2 2016-10-02 17:58:14 +01:00
Kevin Ansfield
502abeb09f Upgrading Casper to 1.3.1 2016-07-26 13:12:55 +01:00
Hannah Wolfe
fe521bec78 Upgrading Casper to 1.3.0 2016-05-13 11:11:13 +02:00
Hannah Wolfe
851a3aa002 Upgrading Casper to 1.2.8 2016-02-03 09:35:50 +00:00
Hannah Wolfe
ca4a66ed14 Upgrading Casper to 1.2.7 2016-01-12 10:00:20 +00:00
Hannah Wolfe
34d329ef56 Upgrading Casper to 1.2.6 2015-11-26 09:33:40 +08:00
Hannah Wolfe
dd7dbc1667 Upgrading Casper to 1.2.5 2015-09-02 18:16:52 +01:00
Hannah Wolfe
085407c9b9 Upgrading Casper to 1.2.4 2015-05-21 17:04:08 +01:00
Hannah Wolfe
94579d172d Upgrading Casper to 1.2.3 2015-05-14 15:53:35 +01:00
Hannah Wolfe
498a0aaad1 Upgrading Casper to 1.2.2 2015-04-22 22:12:25 +01:00
Hannah Wolfe
651e88718c Upgrading Casper to 1.2.1 2015-04-22 14:09:52 +01:00
Hannah Wolfe
ec761501df Upgrading Casper to 1.2.0 2015-04-12 13:26:57 +01:00
Hannah Wolfe
26508e6621 Upgrading Casper to 1.1.7 2015-03-09 18:01:45 +00:00
Hannah Wolfe
a9389bf682 Upgrading Casper to 1.1.6 2015-02-28 16:17:29 +00:00
Hannah Wolfe
ac72e1c71e Upgrading Casper to 1.1.5 2015-01-12 17:23:55 +00:00
Hannah Wolfe
d518df7386 Upgrading Casper to 1.1.3 2014-12-04 15:39:13 +00:00
Hannah Wolfe
9d2a907b38 Upgrading Casper to 1.1.2 2014-11-17 17:38:39 +00:00
Hannah Wolfe
5496d006a0 Upgrading Casper to 1.1.1 2014-10-18 21:45:55 +02:00
Hannah Wolfe
5040f3a970 Upgrading Casper again 2014-09-25 18:24:12 +01:00
Hannah Wolfe
30ca4e3bde Upgrading Casper to 1.1.0 2014-09-25 15:46:46 +01:00
Hannah Wolfe
3fec767df7 Upgrading Casper to 1.0.1 2014-08-26 21:14:42 +01:00
Hannah Wolfe
9131d01c6e Upgrading Casper to official 1.0.0 release 2014-08-11 08:19:27 +01:00
Hannah Wolfe
516df1a4b3 Updating Casper to latest 2014-08-09 00:50:59 +01:00
Hannah Wolfe
5880c7088a Updating Casper to latest 2014-08-06 08:39:40 +01:00
Hannah Wolfe
b0fdf4d078 Re-upgrading Casper 2014-08-01 00:28:55 +01:00
Hannah Wolfe
3f8d3d3774 Version bump to 0.5.0-rc1 2014-08-01 00:13:03 +01:00
Hannah Wolfe
6325aa611c Updating Casper to latest 2014-07-31 23:08:23 +01:00
Hannah Wolfe
05c49ef989 Upgrading Casper to potential 1.0 version 2014-07-22 18:09:03 +01:00
Hannah Wolfe
d2ebe49f9a Upgrading Casper 2014-07-20 09:35:18 +01:00
Hannah Wolfe
10e34936bc Updating to Casper 0.9.3 2014-03-20 19:23:13 +00:00
John O'Nolan
7ebd104f3f Rename 'plugins' to 'apps'
Fixes #1988
2014-01-21 15:45:27 +07:00
Hannah Wolfe
31e690cb15 Updating to latest Casper 2014-01-13 02:38:36 +00:00
Hannah Wolfe
055882fd34 Updating to latest Casper 2014-01-12 23:41:51 +00:00
Hannah Wolfe
cd3c061090 Updating to latest Casper 2014-01-09 21:45:09 +00:00
Hannah Wolfe
8b93aadf8d Updating to latest Casper 2014-01-06 21:08:15 +00:00
Zach Schneider
9f2b9c9824 Updated Casper to latest version
Fixes #1846
2014-01-04 17:18:47 -05:00
Hannah Wolfe
0582470682 Updating to the latest casper
issue TryGhost/Ghost#1577

- adding asset helper for subdirectory support
2013-11-28 15:22:18 +00:00
Hannah Wolfe
260f8837e8 Updating Casper to latest inc page template 2013-11-06 20:33:08 +00:00
buddhamagnet
ec00b71b09 added full stops to READMEs 2013-10-14 13:56:09 +01:00
Hannah Wolfe
14ac437763 Updating to latest Casper
- triple braces for post titles everywhere
2013-10-09 19:29:38 +01:00
Hannah Wolfe
0169b78f35 Updating to Latest Casper, more gist fixes 2013-09-27 17:21:06 +01:00
Hannah Wolfe
4d6455e6d1 Updating to latest Casper, includes fix for gists 2013-09-27 14:17:32 +01:00
Hannah Wolfe
c7a91ffff1 Removing FancyFirstChar plugin
- requires removal of most of the plugin tests
2013-09-18 19:49:10 +01:00
Hannah Wolfe
a714db1eeb Updating to the latest Casper
closes #776
2013-09-18 00:32:31 +01:00
Hannah Wolfe
e20ee894b0 Updating casper 2013-09-15 19:11:01 +01:00
Hannah Wolfe
d968495996 Mass renaming of things
Conflicts:
	core/client/views/settings.js
	core/server/models/user.js
2013-09-14 21:56:07 +01:00
Hannah Wolfe
21df506c47 Moving default location of the Database
closes #579

- adding a readme to the content/data folder to make sure it is always created
- also fixes a rebasing error
2013-09-14 14:08:56 +01:00
Hannah Wolfe
762dcb2334 Adding missing file 2013-09-12 22:04:28 +01:00
Hannah Wolfe
c9556abd31 Ensuring content/images is present
- removed the two old core/content READMEs which serve little purpose
2013-09-12 22:01:59 +01:00
Hannah Wolfe
6417ef778a Added blog cover image
closes #571

- added blog cove beneath logo, wired it up to the {{@blog}} globals
- updated casper
- also deleted settings/content
2013-09-09 18:13:19 +01:00
John O'Nolan
64ad0214db Kill off old image fixtures and ignore user-uploaded images 2013-09-09 12:44:38 +02:00
Jacob Gable
e56a0badb5 Fix FancyFirstChar nested tag content
Added some white space skipping and inner tag checking to the fancify
method.
2013-09-06 20:32:20 -05:00
Hannah Wolfe
fa37a56922 Updating to latest Casper 2013-09-06 18:51:22 +01:00
Hannah Wolfe
83a4a77703 Updating to Casper 0.9
Casper has had a lovely redesign & has been updated to use all the new theme helper awesomeness
2013-09-02 23:24:18 +01:00
cobbspur
1366fc2fd7 updating casper 2013-08-22 21:53:00 +01:00
ErisDS
8a49478b57 0.2.1 version bump to signify db upgrade + Casper update
- updated package.json version as this version requires a database upgrade
- updated casper reference to the latest version
2013-08-07 12:10:05 +01:00
Hannah Wolfe
2f11f053ab Minor code cleanup, docs and other bits & pieces 2013-08-06 22:24:40 +01:00
Jacob Gable
0238909281 Initial Plugin API Implementation
Implements basic functionality described in #227 for loading plugins
from a specific directory and having a specific workflow with an init()
method and a disable() method.
2013-08-05 11:15:17 -05:00
Hannah Wolfe
8b18629e22 Updating Casper with CSS fixes
- fixes #265 issues with #Ghost and markdown
2013-07-14 17:20:20 +01:00
ErisDS
d57cea17f1 Milestone 0.2.0 version bump & updated Casper reference to match 2013-07-12 00:13:20 +01:00
Hannah Wolfe
316a50b7ff Issue #246 part 12
-  renamed single.hbs to post.hbs
- casper updated to match
2013-07-11 17:57:12 +01:00
Hannah Wolfe
f6ae99a0ba Updating casper to the lastest version
- various updates to helpers
2013-07-11 17:46:58 +01:00
Hannah Wolfe
6b3f835cfb Rename content fields - closes #253
- rename "content" to "content_raw"
- rename "content_raw" to "content"
- change all references
2013-07-11 16:27:19 +01:00
ErisDS
dfe0b72795 Updating master to point to latest version of Casper 2013-07-09 16:08:02 +01:00
Hannah Wolfe
7acd165d7a Bug fix - unable to view single page
- The fancyFirstChar plugin expected to always get an array of posts, and therefore broke on the single post pages
- Changed the plugin to cope with single objects as well as arrays
2013-07-07 18:54:50 +01:00
Hannah Wolfe
5c15c2d4b0 issue #186 - load plugins
- Adding activePlugins array to config.js
- Adding a loadPlugins function to ghost.js
- Tweaking fancyFirstChar.js so that it works again, getting rid of the function wrapper and constructor
2013-07-01 20:24:48 +01:00
Gabor Javorszky
6ab8109f40 Getting rid of adminnavbar filter and console.logs
Closes #219. Self-explanatory, look at the code.
2013-06-30 16:50:26 +01:00
cobbspur
7de659a606 bumping casper to latest version 2013-06-25 16:22:53 +01:00
Hannah Wolfe
bc3b8541ab Milestone 0.1.1 version bump commit & updated Casper reference to match 2013-06-18 22:42:30 +01:00
Hannah Wolfe
316985feab Pointer to Casper updated
Casper has been updated to match the name change of ghostGlobals to
settings
2013-06-17 23:36:12 +01:00
Hannah Wolfe
0a500bd104 Updating Casper reference to point to todays changes. 2013-06-16 20:49:47 +01:00
Hannah Wolfe
4307b8c94d Changing Casper submodule to point to master 2013-06-15 11:23:29 +01:00
Hannah Wolfe
37fd6f7a06 Re-adding the image fixtures which I forgot to readd when I was moving them around 2013-06-13 21:44:18 +01:00
Hannah Wolfe
60d90967e1 issue 101 - updating the data model
Added & removed many properties as required & fixed tests
Updated & also cleaned up the fixtures, inc images
Added order by published to the findPage query
2013-06-06 21:36:17 +01:00
Gabor Javorszky
33c28a88e8 filter on adminnavbar does nothing 2013-05-30 23:43:04 +01:00
Gabor Javorszky
9a7e153549 #25: admin navbar and filter 2013-05-29 01:10:39 +01:00
Jacob Gable
601e261439 Fixing tests and adding settings provider. 2013-05-25 11:48:15 -05:00
Hannah Wolfe
956cda158a adding Casper as a submodule of Ghost 2013-05-11 17:46:16 +01:00
Hannah Wolfe
17d421bfcc Initial commit to GitHub repo 2013-05-11 17:44:25 +01:00