vuamitom / ghost Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tryghost/ghost
👻 The most popular headless Node.js CMS for professional publishing
Home Page: https://ghost.org
License: MIT License
This project forked from tryghost/ghost
👻 The most popular headless Node.js CMS for professional publishing
Home Page: https://ghost.org
License: MIT License
Add a Code field to a Post , type: string, maxlength: 10
Purpose: Để team content dùng code này trong nội dung chuyển khoản mua bài
Provide frontend stock list helper tag. filter="kind:1"
{{#get "tags" filter="kind:1" include="count.posts" order="count.posts desc" limit="6"}}
{{#foreach tags}}
<a href="{{url}}">{{name}} | {{count.posts}} posts</a>
{{/foreach}}
{{/get}}
Add a Reader
role fixture
Similar to what happen when accepting invitation email. Only without invitation token
POST /api/v2/finpub/readers
References:
https://github.com/vuamitom/Ghost/blob/master/core/server/services/invitations/accept.js
This should be a hook to #2
Purpose is to have reader appear in "Members" tab in admin
window.onFinpubReady = function(finpub) {
finpub.getLoginInfo().then(user => {
if (user) {
// already login
// show welcome msg...
}
}).catch(e => {
// not login yet
let but = document.getElementById('signinBut');
if (but) {
finpub.init(window.location);
but.addEventListener('click', e => {
console.log('signin');
e.preventDefault();
e.stopPropagation();
finpub.signin(function(userInfo) {
// something here.
});
});
}
})
};
Ui của registration page gần xong rồi nhé. @khuevu tích hợp api vào.
http://localhost:2368/reader/signup
Code chính nằm ở
core/finpub/app/components/widgets/base-auth-form.js
@khuevu tạo api với db trước nhé. Xong assign lại sang đây.
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.