twreporter / keystone Goto Github PK
View Code? Open in Web Editor NEWThis project forked from keystonejs/keystone-classic
node.js cms and web app framework
Home Page: http://www.keystonejs.com
License: MIT License
This project forked from keystonejs/keystone-classic
node.js cms and web app framework
Home Page: http://www.keystonejs.com
License: MIT License
currently need to $ npm publish
manually
I'm running an old project that's built on Keystone and really don't want to port it all over to the new graphQL stuff. Is this fork working?
My currently deployed app has recently died, due to the MongoDB API changing and no longer working with my ancient app.
as Title.
<form>
submit時可以在那個欄位推一個空的值出去,用以洗掉原有值的workaround,空白選項會讓<Select>
產生<input type="hidden" value=' '>
<form>
的submit行為是否正確https://www.twreporter.org/a/kunyu-landfill-site-longsheng-village-people
蛇窿透𧊅窟
keystone editor顯示是對的,但hidden input不對,所以存到db的東西也不對
found issues:
keystone/fields/types/html/HtmlField.js, valueStr
Currently, we will store three JSON objects, Draft EditorState, HTML(transferred from Draft EditorState) and React State(transferred from Draft EditorState) into MongoDB.
It is used in Draft editorial tool.
It is used for RSS feed.
It is the raw data for our revamp article page.
The React State will be an array of Block Level
blocks.
Each block will contain these properties:
id
: Unique id as key of React component.type
: Block type, could be one of Block Level
.alignment
: Be one of left
, right
, center
and expand
. Default is center
.content
: raw data mixed with inline style
html tag.styles
: an array of classname.[
{
"id": "UNIQUE_ID_1",
"type": "paragraph",
"alignment": "center",
"content": ["<p><strong>bold string</strong></p><p></p><p><a href=\"https://www.twreporter.org\">twreporter link</a></p><p></p><div>"],
"styles": []
},
{
"id": "UNIQUE_ID_2",
"type": "imagediff",
"alignment": "center",
"content": [{
"mobile": {
"id": "IMAGE_UNIQUE_ID_1",
"url": "https://storage.googleapis.com/twreporter-article.twreporter.org/galleries/20160407220629-9d9b158d70f8c26962e91dfd0397c131-mobile.png",
"description": "this is description",
"width": 800,
"height": 298
},
"tablet": {
"id": "IMAGE_UNIQUE_ID_1",
"url": "https://storage.googleapis.com/twreporter-article.twreporter.org/galleries/20160407220629-9d9b158d70f8c26962e91dfd0397c131-tablet.png",
"description": "this is description",
"width": 940,
"height": 350
},
"desktop": {
"id": "IMAGE_UNIQUE_ID_1",
"url": "https://storage.googleapis.com/twreporter-article.twreporter.org/galleries/20160407220629-9d9b158d70f8c26962e91dfd0397c131-desktop.png",
"description": "this is description",
"width": 940,
"height": 350
}
}, {
"mobile": {
"id": "IMAGE_UNIQUE_ID_2",
"url": "https://storage.googleapis.com/twreporter-article.twreporter.org/galleries/20160407222313-5cb894ddf341227fead780401943256b-mobile.jpg",
"description": "this is description",
"width": 2000,
"height": 1500
},
"tablet": {
"id": "IMAGE_UNIQUE_ID_2",
"url": "https://storage.googleapis.com/twreporter-article.twreporter.org/galleries/20160407222313-5cb894ddf341227fead780401943256b-tablet.jpg",
"description": "this is description",
"width": 1200,
"height": 900
},
"desktop": {
"id": "IMAGE_UNIQUE_ID_2",
"url": "https://storage.googleapis.com/twreporter-article.twreporter.org/galleries/20160407222313-5cb894ddf341227fead780401943256b-desktop.jpg",
"description": "this is description",
"width": 800,
"height": 600
}
}],
"styles": []
}
]
The photographer want to be able to bluk upload.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.