New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove server.js and non-handlebars support from kiln #898
Conversation
@@ -1,4 +1,4 @@ | |||
import { includes } from 'lodash'; | |||
import _ from 'lodash'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you should uhhhhhhh use _.includes
for this later in the file? And also write tests? and maybe also test your code???????????????????
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol this is funny...how did this even..work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shift-clay.js is pretty simple logic, but would be non-trivial to test. thanks for catching that syntax error tho!
@@ -67,7 +67,7 @@ export function getListData(store, { uri, prefix }) { | |||
size: 1, | |||
query: { | |||
term: { | |||
uri // match page uri | |||
uri: replaceVersion(uri) // match page uri (removing @published or @scheduled) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace version or remove version? the pages index doesn't have any version appended to its document keys
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replaceVersion
is the name of the function; if passed a single argument it'll remove any version that's applied (or just pass through the uri, if it doesn't have a version)
serverSave
andserverSaveAndRerender
model.js
in order to do client-side optimistic saving + re-rendering (no more passthroughmodel.js
files!)kiln-view-public.js
rendering size (28k → 12k unminified)