2.5.13 • Published 3 years ago

node-egg-c v2.5.13

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

keywrds

pushd(options,) Available options:

-n: Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated. -q: Supresses output to the console. Arguments:

dir: Sets the current working directory to the top of the stack, then executes the equivalent of cd dir. +N: Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. -N: Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. Examples:

async getuser() {
        // const name = 'sy/' + ctx.helper.createName(file.filename);
        // ctx.body = {
        //     code: 0,
        //     url: result.url
        // }
        const { ctx } = this;
        const { code } = ctx.query;

        const config = ctx.app.config.gitee;
        let res = await axios.post('https://gitee.com/oauth/token', {
            grant_type: 'authorization_code',
            code,
            client_id: config.client_id,
            redirect_uri: config.redirect_uri,
            client_secret: config.client_secret
        });
        const access_token = res.data.access_token;
        console.log(res, '**********');
        // 后端
        let user = await axios.get("https://gitee.com/api/v5/user", {
            params: {
                access_token
            }
        })
        console.log(user);
        if (user.status == 200) {
            ctx.body = {
                code: 0,
                data: user.data
            }
        }
    }

$\color{#FF7D00}{internal state and use the provided position instead. Alternatively, you can seed the position using}$ If the prop position: {x: number, y: number} is defined, the will ignore its internal state and use the provided position instead. Alternatively, you can seed the position using defaultPosition. Technically, since works only on position deltas, you could also seed the initial position using CSS top/left.

We make one modification to the React philosophy here - we still allow dragging while a component is controlled. We then expect you to use at least an onDrag or onStop handler to synchronize state.

  • $\color{#FF7D00}{internal state and use the provided position instead. Alternatively, you can seed the position using}$ If the prop position: {x: number, y: number} is defined, the will ignore its internal state and use the provided position instead. Alternatively, you can seed the position using defaultPosition. Technically, since works only on position deltas, you could also seed the initial position using CSS top/left.

We make one modification to the React philosophy here - we still allow dragging while a component is controlled. We then expect you to use at least an onDrag or onStop handler to synchronize state.

  • one modification to the React philosophy here - we still allow dragging while a component is controlled. We then expect you to use at least an onDrag or onStop handler to synchronize state.

$ Questions & Suggestions

Please open an issue here.

License