pioneercode / pioneer-blog Goto Github PK
View Code? Open in Web Editor NEWPioneer Code Website - Built on ASP.Net Core
Home Page: https://pioneercode.com
License: MIT License
Pioneer Code Website - Built on ASP.Net Core
Home Page: https://pioneercode.com
License: MIT License
I can find /admin/app.css only,where is the /app.css and app.js?
Hi
I can not register account on project
Best
Jerry
Hello,
I'm havin an issue with uour _passwordHasher and _appConfiguration properties. They are always null. You are not injecting it anywhere.
When using the Posts page in the administrative section, the expected behavior is that all posts should be returned and displayed regardless if the post.publish field is false.
Hi @chad-ramos :
I found your code like
getAll(): Promise<Category[]> {
return this.http.get(this.url)
.toPromise()
.then((res: Response) => {
const body: Category[] = res.json();
return body || [];
})
.catch(this.handleError);
}
create(): Promise<Category> {
return this.http.post(this.url, {} as Category)
.toPromise()
.then((res: Response) => {
const body: Category = res.json();
return body || [];
})
.catch(this.handleError);
}
then you can see this repeat many times in your code
.then((res: Response) => {
const body: Category = res.json();
return body || [];
I think the better create function like this
private extractData(res: Response) {
let body = res.json();
return body || {};
}
then we can use like this
getAll(): Promise<Category[]> {
return this.http.get(this.url)
.toPromise()
.then(this.extractData)
.catch(this.handleError);
}
Please let me know about that idea
Best Jerry
I want to build blog with mysql
Display a character count of description and feedback to the user if they go over that character count.
It's error...
D:\src\Pioneer.Blog>gulp pubilc
[17:47:24] Using gulpfile D:_Document\Desktop\pioneer-blog-master\src\Pioneer.Blog\gulpfile.js
[17:47:24] Task never defined: pubilc
[17:47:24] To list available tasks, try running: gulp --tasks
When adding a new post in the admin section, it should be positioned according to sort order.
Disqus is a resource hog. Let's only load them on demand. https://gist.github.com/nternetinspired/7482445
@chad-ramos
When i tried to create new post/category and tags in admin.I got the error below
Please see 3 tables in my database,user,role and user role below
Best
Jerry
When I run "gulp public" I receive the following error.
[14:05:55] Error: File not found with singular glob: D:\Git\tsconn23\pioneer-blog\src\Pioneer.Blog\scripts\syntaxhighlighter.js
at Glob. (D:\Git\tsconn23\pioneer-blog\src\Pioneer.Blog\node_modules\glob-stream\index.js:41:11)
at Glob.g (events.js:291:16)
at emitOne (events.js:96:13)
at Glob.emit (events.js:188:7)
at Glob._finish (D:\Git\tsconn23\pioneer-blog\src\Pioneer.Blog\node_modules\glob-stream\node_modules\glob\glob.js:172:8)
at done (D:\Git\tsconn23\pioneer-blog\src\Pioneer.Blog\node_modules\glob-stream\node_modules\glob\glob.js:159:12)
at Glob._processSimple2 (D:\Git\tsconn23\pioneer-blog\src\Pioneer.Blog\node_modules\glob-stream\node_modules\glob\glob.js:652:12)
at D:\Git\tsconn23\pioneer-blog\src\Pioneer.Blog\node_modules\glob-stream\node_modules\glob\glob.js:640:10
at Glob.stat2 (D:\Git\tsconn23\pioneer-blog\src\Pioneer.Blog\node_modules\glob-stream\node_modules\glob\glob.js:736:12)
at lstatcb (D:\Git\tsconn23\pioneer-blog\src\Pioneer.Blog\node_modules\glob-stream\node_modules\glob\glob.js:728:12)
at RES (D:\Git\tsconn23\pioneer-blog\src\Pioneer.Blog\node_modules\inflight\inflight.js:31:16)
at f (D:\Git\tsconn23\pioneer-blog\src\Pioneer.Blog\node_modules\once\once.js:25:25)
at FSReqWrap.oncomplete (fs.js:123:15)
This appears to be due to the inclusion of a pre-built 'scripts/syntaxhighlighter.js' entry in gulp-tasks\public.js (line 77). However that file is not checked into src.
To get around this, one can go to the repo for syntaxhighlighter.js and build a local copy which can then be placed in Pioneer.Blog\scripts. But inclusion of the pre-built file would make things easier for someone just looking to try out PioneerBlog.
Drop dependency on Foundation and optimize output.
When I run any gulp task, I get this error
dev\admin\components\categories\main.ts(1,1): error TS6053: File 'C:/Users/IsaacLevin/Downloads/pioneer-blog-master/src/Pioneer.Blog/typings/index.d.ts' not found.
dev\admin\components\posts\main.ts(1,1): error TS6053: File 'C:/Users/IsaacLevin/Downloads/pioneer-blog-master/src/Pioneer.Blog/typings/index.d.ts' not found.
dev\admin\components\tags\main.ts(1,1): error TS6053: File 'C:/Users/IsaacLevin/Downloads/pioneer-blog-master/src/Pioneer.Blog/typings/index.d.ts' not found.
dev\public\app.ts(1,1): error TS6053: File 'C:/Users/IsaacLevin/Downloads/pioneer-blog-master/src/Pioneer.Blog/typings/index.d.ts' not found.
dev\public\app.ts(2,1): error TS2304: Cannot find name '$'.
dev\public\app.ts(3,3): error TS2304: Cannot find name '$'.
dev\public\app.ts(8,3): error TS2304: Cannot find name '$'.
dev\public\app.ts(14,14): error TS2304: Cannot find name '$'.
dev\public\app.ts(19,1): error TS2304: Cannot find name '$'.
dev\public\app.ts(31,1): error TS2304: Cannot find name '$'.
Looks like your typings file is missing from git
It looks the Areas/Admin is not included in the master branch?
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.