Git Product home page Git Product logo

Comments (11)

KangGeunSu avatar KangGeunSu commented on July 17, 2024

Please check...

from flow.

petersirka avatar petersirka commented on July 17, 2024

Hi, we have updated HttpRoute component.

Update:

  • Update Total.js framework
  • Flow package
  • HttpRoute component

I belive that it will work.

from flow.

KangGeunSu avatar KangGeunSu commented on July 17, 2024

All of them have been tested with the latest version.

But it doesn't work yet.

There is no 'isUNIQUE' attribute under 'F.routes.web'.

[ { path: '/',
    hash: 0,
    id: null,
    apiname: undefined,
    name: '',
    priority: 0,
    sitemap: '',
    schema: undefined,
    novalidate: false,
    workflow: undefined,
    subdomain: null,
    description: undefined,
    controller: 'unknown',
    owner: 'package_flow',
    urlraw: '/',
    url: [ '/' ],
    param: [],
    paramidindex: -1,
    paramnames: null,
    paramtypes: null,
    flags: [ 'get' ],
    flags2: { get: true },
    method: 'GET',
    execute: [Function],
    length: 10240,
    middleware: null,
    timeout: 3000,
    isGET: true,
    isMULTIPLE: false,
    isJSON: false,
    isXML: false,
    isRAW: false,
    isENCRYPT: false,
    isMOBILE: false,
    isROBOT: false,
    isMOBILE_VARY: false,
    MEMBER: 0,
    isWILDCARD: false,
    isROLE: false,
    isREFERER: false,
    isHTTPS: false,
    isHTTP: false,
    isDEBUG: false,
    isRELEASE: false,
    isBOTH: true,
    isXHR: false,
    isUPLOAD: false,
    isSYSTEM: false,
    isPARAM: false,
    isDELAY: false,
    isDYNAMICSCHEMA: false,
    isAPI: false,
    CUSTOM: null,
    options: undefined,
    type: 'web',
    parent: { route: [Circular] },
    compare: [Function],
    isUNIQUE: true,
    currentViewDirectory: '' },
  { path: '/login',
    hash: 1448719514,
    id: null,
    apiname: undefined,
    name: '/login',
    priority: 0,
    sitemap: '',
    schema: undefined,
    novalidate: false,
    workflow: undefined,
    subdomain: null,
    description: undefined,
    controller: 'default',
    owner: 'controller_default',
    urlraw: '/login/',
    url: [ 'login' ],
    param: [],
    paramidindex: -1,
    paramnames: null,
    paramtypes: null,
    flags: [ 'get' ],
    flags2: { get: true },
    method: 'GET',
    execute: [Function: view_login],
    length: 10240,
    middleware: null,
    timeout: 3000,
    isGET: true,
    isMULTIPLE: false,
    isJSON: false,
    isXML: false,
    isRAW: false,
    isENCRYPT: false,
    isMOBILE: false,
    isROBOT: false,
    isMOBILE_VARY: false,
    MEMBER: 0,
    isWILDCARD: false,
    isROLE: false,
    isREFERER: false,
    isHTTPS: false,
    isHTTP: false,
    isDEBUG: false,
    isRELEASE: false,
    isBOTH: true,
    isXHR: false,
    isUPLOAD: false,
    isSYSTEM: false,
    isPARAM: false,
    isDELAY: false,
    isDYNAMICSCHEMA: false,
    isAPI: false,
    CUSTOM: null,
    options: undefined,
    type: 'web',
    parent: { route: [Circular] },
    compare: [Function],
    isUNIQUE: true },
  { path: 'GET /test 5000,id:1620609715122',
    hash: 46961985,
    id: '1620609715122',
    apiname: undefined,
    name: '/test',
    priority: 0,
    sitemap: '',
    schema: undefined,
    novalidate: false,
    workflow: undefined,
    subdomain: null,
    description: undefined,
    controller: 'default',
    owner: 'controller_default',
    urlraw: '/test/',
    url: [ 'test' ],
    param: [],
    paramidindex: -1,
    paramnames: null,
    paramtypes: null,
    flags: [ 'get' ],
    flags2: { get: true },
    method: 'GET',
    execute: [Function: handler],
    length: 5120,
    middleware: null,
    timeout: 5000,
    isGET: true,
    isMULTIPLE: false,
    isJSON: false,
    isXML: false,
    isRAW: false,
    isENCRYPT: false,
    isMOBILE: false,
    isROBOT: false,
    isMOBILE_VARY: false,
    MEMBER: 0,
    isWILDCARD: false,
    isROLE: false,
    isREFERER: false,
    isHTTPS: false,
    isHTTP: false,
    isDEBUG: false,
    isRELEASE: false,
    isBOTH: true,
    isXHR: false,
    isUPLOAD: false,
    isSYSTEM: false,
    isPARAM: false,
    isDELAY: false,
    isDYNAMICSCHEMA: false,
    isAPI: false,
    CUSTOM: null,
    options: undefined,
    type: 'web',
    parent: { route: [Circular] },
    compare: [Function] } ]

/ : flow (action 200 OK)
/login : controllers/default.js (action 200 OK)
/test : flow's httproute (not action 404..)

from flow.

petersirka avatar petersirka commented on July 17, 2024

Can you send me a simple Flow project with that route and all node_modules? I'll test it.

from flow.

KangGeunSu avatar KangGeunSu commented on July 17, 2024

emptyproject-flow.zip

Download "emptyproject-flow", add httproute, and add controller.

from flow.

KangGeunSu avatar KangGeunSu commented on July 17, 2024

If controllers/default.js is deleted, it works normally.

/test flow's httproute (action 200 OK)

If you add default.js to the controller, httproute.js does not work.

from flow.

petersirka avatar petersirka commented on July 17, 2024

Yes, I found a bug in Total.js framework. I have fixed it, can you test it on your side? $ npm install total4@beta. This week will be a new official release. Thank you for the report!

from flow.

KangGeunSu avatar KangGeunSu commented on July 17, 2024

An error occurs

Cannot find module 'worker_threads'

my node -v
v10.24.0

Thank you

from flow.

petersirka avatar petersirka commented on July 17, 2024

Hmm, Total.js 4 needs Node.js +14. But it will work with +12 and worker threads are part of Node.js v12.

from flow.

KangGeunSu avatar KangGeunSu commented on July 17, 2024

OK I'll try.

from flow.

KangGeunSu avatar KangGeunSu commented on July 17, 2024

Confirmed
Thank You!!

from flow.

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.