Coder Social home page Coder Social logo

Comments (17)

ivan-nginx avatar ivan-nginx commented on May 26, 2024

Where u want to discuss? Let's go in gitter at this weekend?

from hexo-theme-next.

sli1989 avatar sli1989 commented on May 26, 2024

you can add security DNS or host name in leancloud's Security settings?After setting up a Web security domain name, you can only call server resources through the JavaScript SDK under this domain name.

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

I don't know what's the trouble and where is bug, but yes, if this is security bug, it must be of course fixed.

from hexo-theme-next.

LEAFERx avatar LEAFERx commented on May 26, 2024

@sli1989 that's not the problem
there is another problem...

from hexo-theme-next.

LEAFERx avatar LEAFERx commented on May 26, 2024

Now i'm working on fixing it and have some progress
but the fix must be done in the leancloud's background controller manually
it can't be done in the next theme
i will write a blog about the solution after i fix it but .... how can we inform those who use this function
there's too many

from hexo-theme-next.

LEAFERx avatar LEAFERx commented on May 26, 2024

Fixes are done with a plugin.Chinese doc is on the way. English doc may be released in few days.

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

Implemented in #137 pull.

from hexo-theme-next.

LEAFERx avatar LEAFERx commented on May 26, 2024

bug fixed in #137 .

from hexo-theme-next.

sli1989 avatar sli1989 commented on May 26, 2024

Is there any problems? It's too much setting steps...

ERROR Plugin load failed: hexo-leancloud-counter-security
/builds/sli1989/sli1989.gitlab.io/node_modules/hexo-leancloud-counter-security/index.js:22
async function sync() {
      ^^^^^^^^
SyntaxError: Unexpected token function
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at /builds/sli1989/sli1989.gitlab.io/node_modules/hexo/lib/hexo/index.js:230:17
    at tryCatcher (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/promise.js:638:18)
    at Promise._resolveCallback (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/promise.js:432:57)
    at Promise._settlePromiseFromHandler (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/promise.js:524:17)
    at Promise._settlePromise (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/promise.js:638:18)
    at /builds/sli1989/sli1989.gitlab.io/node_modules/bluebird/js/release/nodeback.js:42:21
    at /builds/sli1989/sli1989.gitlab.io/node_modules/graceful-fs/graceful-fs.js:78:16
    at tryToString (fs.js:456:3)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:443:12)

from hexo-theme-next.

LEAFERx avatar LEAFERx commented on May 26, 2024

@sli1989 please tell me what's ur node version and hexo version
async is introduced in ES2017 so it may need a higher version node
If it is the problem i will update the doc

from hexo-theme-next.

sli1989 avatar sli1989 commented on May 26, 2024
image: node:6.10.2

`-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | +-- [email protected] 
  | +-- [email protected] 
  | | `-- [email protected] 
  | +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | | +-- [email protected] 
  | | | +-- [email protected] 
  | | | | +-- [email protected] 
  | | | | | `-- [email protected] 
  | | | | +-- [email protected] 
  | | | | +-- [email protected] 
  | | | | | +-- [email protected] 
  | | | | | | `-- [email protected] 
  | | | | | |   +-- [email protected] 
  | | | | | |   +-- [email protected] 
  | | | | | |   +-- [email protected] 
  | | | | | |   | +-- [email protected] 
  | | | | | |   | | `-- [email protected] 
  | | | | | |   | `-- [email protected] 
  | | | | | |   `-- [email protected] 
  | | | | | +-- [email protected] 
  | | | | | `-- [email protected] 
  | | | | +-- [email protected] 
  | | | | | `-- [email protected] 
  | | | | +-- [email protected] 
  | | | | +-- [email protected] 
  | | | | +-- [email protected] 
  | | | | | `-- [email protected] 
  | | | | +-- [email protected] 
  | | | | | +-- [email protected] 
  | | | | | | `-- [email protected] 
  | | | | | `-- [email protected] 
  | | | | +-- [email protected] 
  | | | | | +-- [email protected] 
  | | | | | `-- [email protected] 
  | | | | `-- [email protected] 
  | | | |   `-- [email protected] 
  | | | |     `-- [email protected] 
  | | | `-- [email protected] 
  | | |   `-- [email protected] 
  | | +-- [email protected] 
  | | +-- [email protected] 
  | | +-- [email protected] 
  | | +-- [email protected] 
  | | | `-- [email protected] 
  | | +-- [email protected] 
  | | | `-- [email protected] 
  | | +-- [email protected] 
  | | `-- [email protected] 
  | |   +-- [email protected] 
  | |   | `-- [email protected] 
  | |   |   +-- [email protected] 
  | |   |   `-- [email protected] 
  | |   +-- [email protected] 
  | |   | +-- [email protected] 
  | |   | +-- [email protected] 
  | |   | +-- [email protected] 
  | |   | +-- [email protected] 
  | |   | +-- [email protected] 
  | |   | `-- [email protected] 
  | |   `-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  | `-- [email protected] 
  |   +-- [email protected] 
  |   +-- [email protected] 
  |   | +-- [email protected] 
  |   | | `-- [email protected] 
  |   | +-- [email protected] 
  |   | `-- [email protected] 
  |   |   `-- [email protected] 
  |   |     +-- [email protected] 
  |   |     | `-- [email protected] 
  |   |     `-- [email protected] 
  |   `-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | | +-- [email protected] 
  | | | `-- [email protected] 
  | | `-- [email protected] 
  | +-- [email protected] 
  | | +-- [email protected] 
  | | | +-- [email protected] 
  | | | `-- [email protected] 
  | | `-- [email protected] 
  | |   `-- [email protected] 
  | +-- [email protected] 
  | +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | `-- [email protected] 
  `-- [email protected] 
    `-- [email protected] 

from hexo-theme-next.

tyoungcn avatar tyoungcn commented on May 26, 2024

I meet the same problem as sli1989, and my node version is v6.10.0 .

from hexo-theme-next.

LEAFERx avatar LEAFERx commented on May 26, 2024

@sli1989 @tyoungcn
solved in [email protected]

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

There are some not actually maked to production things:

  • 1. I don't understand what in CN docs and want at least see EN (if anybody can to translate this, welcome). Added in #174.
  • 2. I don't see what node plugin supported. And as Hexo at least support node v6, this plugin must support this too.
    image
  • 3. I don't understand what mean option betterPerformance: false in NexT config and can't find any instructions in plugin readme how to use this option.

So, i suggest for now it's beta feature and i make some changes in this commit (by default security option for now disabled).

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

@LEAFERx u can change back 29e2e59 commit and close this issue, i think.

from hexo-theme-next.

LEAFERx avatar LEAFERx commented on May 26, 2024

could u do this?i have no access to computer now

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

Solved.

All future reports for this plugin can be posted here.

from hexo-theme-next.

Related Issues (20)

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.