Giter Site home page Giter Site logo

pioneercode / pioneer-blog Goto Github PK

View Code? Open in Web Editor NEW
40.0 40.0 13.0 14.42 MB

Pioneer Code Website - Built on ASP.Net Core

Home Page: https://pioneercode.com

License: MIT License

C# 13.94% JavaScript 24.47% CSS 14.80% TypeScript 5.16% HTML 41.50% Dockerfile 0.13%
asp-net-core blog dotnet-core

pioneer-blog's People

Contributors

azure-pipelines[bot] avatar chad-ramos avatar devigo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pioneer-blog's Issues

Duplicate code

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

Task never defined: pubilc

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

Forbidden in admin

@chad-ramos
When i tried to create new post/category and tags in admin.I got the error below

blog

Please see 3 tables in my database,user,role and user role below

user

roles

useroles

Best
Jerry

gulp public = "File Not Found" error on syntaxhighlighter.js

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.

Can not find Claims in seed user

Hi
Base on your code i uncomment code lin functions seed user but visual studio said that can not find any Claims method

bbbbbbbbb

In namespace i used like below

issue2

Could you check why i can not find any method Claims?
Best

Admin area error

Hi
When i go to admin,open console debug in chrome ,have some errors here
Please see the image in attached
admin

No bower.json present

Hi
I run command line ---> bower install
I got the error: no bower.json present
Please see the image attached more detail
Uploading blog.jpg…

missing typings file

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.