generated from silexlabs/silex-plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: permalink and pagination data as expressions
- Loading branch information
Showing
9 changed files
with
247 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"assets":[],"styles":[{"selectors":["#inue"],"style":{"padding":"10px"}}],"pages":[{"frames":[{"component":{"type":"wrapper","stylable":["background","background-color","background-image","background-repeat","background-attachment","background-position","background-size"],"attributes":{"id":"ijqc"},"components":[{"type":"text","attributes":{"id":"inue"},"components":[{"type":"textnode","content":"Insert your text here"}],"privateStates":[{"id":"innerHTML","expression":[]}]}],"nameForDataSource":"","publicStates":[{"id":"pagination","hidden":true,"label":"Pagination","expression":[{"options":{"filter":"{}"},"type":"property","propType":"field","fieldId":"languages","label":"languages","typeIds":["Language"],"dataSourceId":"ds_39ihty","kind":"list"}]},{"id":"items","hidden":true,"label":"pagination.items","expression":[{"label":"Unused items label","type":"property","propType":"field","fieldId":"languages","dataSourceId":"ds_39ihty","typeIds":["languages"],"kind":"list"}]},{"id":"pages","hidden":true,"label":"pagination.pages","expression":[{"label":"Unused pages label","type":"property","propType":"field","fieldId":"languages","dataSourceId":"ds_39ihty","typeIds":["languages"],"kind":"list"}]},{"id":"eleventySeoTitle","label":"eleventySeoTitle","hidden":true,"expression":[]},{"id":"eleventySeoDescription","label":"eleventySeoDescription","hidden":true,"expression":[]},{"id":"eleventyFavicon","label":"eleventyFavicon","hidden":true,"expression":[]},{"id":"eleventyOGImage","label":"eleventyOGImage","hidden":true,"expression":[]},{"id":"eleventyOGTitle","label":"eleventyOGTitle","hidden":true,"expression":[]},{"id":"eleventyOGDescription","label":"eleventyOGDescription","hidden":true,"expression":[]},{"id":"eleventyPageData","label":"eleventyPageData","hidden":true,"expression":[{"options":{"filter":"{}"},"type":"property","propType":"field","fieldId":"continents","label":"continents","typeIds":["Continent"],"dataSourceId":"ds_39ihty","kind":"list"}]},{"id":"eleventyPermalink","label":"eleventyPermalink","hidden":true,"expression":[{"options":{},"type":"property","propType":"field","fieldId":"languages","label":"languages","typeIds":["Language"],"dataSourceId":"ds_39ihty","kind":"list"},{"type":"filter","id":"first","label":"first","options":{}},{"type":"property","propType":"field","fieldId":"name","label":"name","typeIds":["String"],"dataSourceId":"ds_39ihty","kind":"scalar","options":{}}]},{"id":"ijqc-do1nss4wml","expression":[],"label":"new-state"}],"id-plugin-data-source":"iuth-9752"},"id":"wtYFTcqmbTsXKu7q"}],"type":"main","id":"tE76lAVWbNKM7r8s","settings":{"eleventyPageSize":"1","eleventyPageData":"[{\"options\":{\"filter\":\"{}\"},\"type\":\"property\",\"propType\":\"field\",\"fieldId\":\"languages\",\"label\":\"languages\",\"typeIds\":[\"Language\"],\"dataSourceId\":\"ds_39ihty\",\"kind\":\"list\"}]","eleventyPermalink":"[{\"options\":{},\"type\":\"property\",\"propType\":\"field\",\"fieldId\":\"languages\",\"label\":\"languages\",\"typeIds\":[\"Language\"],\"dataSourceId\":\"ds_39ihty\",\"kind\":\"list\"},{\"type\":\"filter\",\"id\":\"first\",\"label\":\"first\",\"options\":{}},{\"type\":\"property\",\"propType\":\"field\",\"fieldId\":\"name\",\"label\":\"name\",\"typeIds\":[\"String\"],\"dataSourceId\":\"ds_39ihty\",\"kind\":\"scalar\",\"options\":{}}]","eleventySeoTitle":"[]","eleventySeoDescription":"[]","eleventyFavicon":"[]","eleventyOGImage":"[]","eleventyOGTitle":"[]","eleventyOGDescription":"[]","head":""}},{"name":"New page","frames":[{"component":{"type":"wrapper","stylable":["background","background-color","background-image","background-repeat","background-attachment","background-position","background-size"],"nameForDataSource":"","publicStates":[]},"id":"XWnRUJzxYZi3KkkN"}],"id":"bXBXethuIsNjUYe4N"}],"dataSources":[{"id":"ds_39ihty","label":"New data source","type":"graphql","url":"https://countries.trevorblades.com/graphql","method":"POST","headers":{"content-type":"application/json"},"readonly":false}],"settings":{"eleventyI18n":"on","eleventyFetch":"on","eleventyPageData":"[]","eleventyPermalink":"[]","eleventySeoTitle":"[]","eleventySeoDescription":"[]","eleventyFavicon":"[]","eleventyOGImage":"[]","eleventyOGTitle":"[]","eleventyOGDescription":"[]","head":""},"fonts":[],"symbols":[],"publication":{"connector":{"connectorId":"fs-hosting","type":"HOSTING","displayName":"File system hosting","icon":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%202L6%2022%2018%2022%2018%207%2012%202%206%202Z%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M18%202L12%202%2012%208%2018%208%2018%202Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E","disableLogout":true,"isLoggedIn":true,"oauthUrl":null,"color":"#ffffff","background":"#006400"}}} | ||
{"assets":[],"styles":[],"pages":[{"name":"aaa","frames":[{"component":{"type":"wrapper","stylable":["background","background-color","background-image","background-repeat","background-attachment","background-position","background-size"],"attributes":{"id":"i77k"},"nameForDataSource":"","privateStates":[],"id-plugin-data-source":"i77k-4896","publicStates":[{"id":"pagination","hidden":true,"label":"pagination","expression":[{"label":"Unused pagination label","type":"property","propType":"field","fieldId":"pagination","dataSourceId":"eleventy","typeIds":["pagination"],"kind":"object"}]},{"id":"items","hidden":true,"label":"pagination.items","expression":[{"label":"Unused items label","type":"property","propType":"field","fieldId":"continents","dataSourceId":"ds_39ihty","typeIds":["continents"],"kind":"list"}]},{"id":"pages","hidden":true,"label":"pagination.pages","expression":[{"label":"Unused pages label","type":"property","propType":"field","fieldId":"continents","dataSourceId":"ds_39ihty","typeIds":["continents"],"kind":"list"}]},{"id":"eleventySeoTitle","label":"eleventySeoTitle","hidden":true,"expression":[]},{"id":"eleventySeoDescription","label":"eleventySeoDescription","hidden":true,"expression":[]},{"id":"eleventyFavicon","label":"eleventyFavicon","hidden":true,"expression":[]},{"id":"eleventyOGImage","label":"eleventyOGImage","hidden":true,"expression":[]},{"id":"eleventyOGTitle","label":"eleventyOGTitle","hidden":true,"expression":[]},{"id":"eleventyOGDescription","label":"eleventyOGDescription","hidden":true,"expression":[]},{"id":"eleventyPageData","label":"eleventyPageData","hidden":true,"expression":[{"options":{},"type":"property","propType":"field","fieldId":"continents","label":"continents","typeIds":["Continent"],"dataSourceId":"ds_39ihty","kind":"list"}]},{"id":"eleventyPermalink","label":"eleventyPermalink","hidden":true,"expression":[]}]},"id":"XWnRUJzxYZi3KkkN"}],"id":"bXBXethuIsNjUYe4N","settings":{"name":"aaa","eleventyPageSize":"122","eleventyPageReverse":"on","eleventyPageData":"[{\"options\":{},\"type\":\"property\",\"propType\":\"field\",\"fieldId\":\"continents\",\"label\":\"continents\",\"typeIds\":[\"Continent\"],\"dataSourceId\":\"ds_39ihty\",\"kind\":\"list\"}]","eleventyPermalink":"[{\"type\":\"state\",\"storedStateId\":\"items\",\"label\":\"pagination.items\",\"componentId\":\"i77k-4896\",\"exposed\":true},{\"type\":\"filter\",\"id\":\"first\",\"label\":\"first\",\"options\":{}},{\"type\":\"property\",\"propType\":\"field\",\"fieldId\":\"name\",\"label\":\"name\",\"typeIds\":[\"String\"],\"dataSourceId\":\"ds_39ihty\",\"kind\":\"scalar\",\"options\":{}},{\"type\":\"filter\",\"id\":\"slugify\",\"label\":\"slugify (11ty)\",\"options\":{}},{\"type\":\"filter\",\"id\":\"prepend\",\"label\":\"prepend\",\"options\":{\"value\":\"[{\\\"type\\\":\\\"property\\\",\\\"propType\\\":\\\"field\\\",\\\"fieldId\\\":\\\"fixed\\\",\\\"label\\\":\\\"Fixed value\\\",\\\"kind\\\":\\\"scalar\\\",\\\"typeIds\\\":[\\\"String\\\"],\\\"options\\\":{\\\"value\\\":\\\"/test/\\\"}}]\"}},{\"type\":\"filter\",\"id\":\"append\",\"label\":\"append\",\"options\":{\"value\":\"[{\\\"type\\\":\\\"property\\\",\\\"propType\\\":\\\"field\\\",\\\"fieldId\\\":\\\"fixed\\\",\\\"label\\\":\\\"Fixed value\\\",\\\"kind\\\":\\\"scalar\\\",\\\"typeIds\\\":[\\\"String\\\"],\\\"options\\\":{\\\"value\\\":\\\"/index.html\\\"}}]\"}}]","eleventySeoTitle":"[]","eleventySeoDescription":"[]","eleventyFavicon":"[]","eleventyOGImage":"[]","eleventyOGTitle":"[]","eleventyOGDescription":"[]","head":""},"type":"main"}],"dataSources":[{"id":"ds_39ihty","label":"New data source","type":"graphql","url":"https://countries.trevorblades.com/graphql","method":"POST","headers":{"content-type":"application/json"},"readonly":false}],"settings":{"eleventyI18n":"on","eleventyFetch":"on","eleventyPageData":"[]","eleventyPermalink":"[]","eleventySeoTitle":"[]","eleventySeoDescription":"[]","eleventyFavicon":"[]","eleventyOGImage":"[]","eleventyOGTitle":"[]","eleventyOGDescription":"[]","head":""},"fonts":[],"symbols":[],"publication":{"connector":{"connectorId":"fs-hosting","type":"HOSTING","displayName":"File system hosting","icon":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%202L6%2022%2018%2022%2018%207%2012%202%206%202Z%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M18%202L12%202%2012%208%2018%208%2018%202Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E","disableLogout":true,"isLoggedIn":true,"oauthUrl":null,"color":"#ffffff","background":"#006400"}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# docker build -t linter . | ||
# docker run -v `pwd`/src:/silex/src --rm linter | ||
FROM node:lts | ||
|
||
COPY . /silex | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.