Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codes snippets #10

Open
xgqfrms opened this issue Jun 25, 2018 · 7 comments
Open

codes snippets #10

xgqfrms opened this issue Jun 25, 2018 · 7 comments
Labels
codes snippets codes snippets html template & codes snippets html template & codes snippets vscode & code snippets vscode & code snippets

Comments

@xgqfrms
Copy link
Owner

xgqfrms commented Jun 25, 2018

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 25, 2018

Repository owner locked and limited conversation to collaborators Jun 25, 2018
@xgqfrms xgqfrms added codes snippets codes snippets html template & codes snippets html template & codes snippets labels Jun 25, 2018
@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 25, 2018

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 25, 2018

code snippets

vscode & code snippets

https://github.com/xgqfrms/FEIQA/tree/master/000-xyz/templates

c3t

{
    "CSS3 Template": {
        "prefix": "c3t",
        "body": [
            "@charset \"UTf-8\";",
            "",
            "/* $1.css */\n",
            ":root {",
            "   --cololr: $2;",
            "   --default-cololr: $2;",
            "   --new-cololr: $3;",
            "}",
        ],
        "description": "CSS3 Template & code snippets!"
    }
}

js6r

{
    "JavaScript ES6 React Template": {
        "prefix": "js6r",
        "body": [
            "\"use strict\";",
            "",
            "/**",
            " * ",
            " * @author xgqfrms",
            " * @license MIT",
            " * @copyright xgqfrms",
            " * ",
            " * @description $2",
            " * @augments $3",
            " * @example $4",
            " * ",
            " */",
            "",
            "const $2Generator = ($5datas = [], debug = false) => {",
            "    let result = ``;",
            "    // do something...",
            "    return $7result;",
            "};",
            "",
            "",
            "",
            "export default $2;",
            "",
            "export {",
            "    $2,",
            "};",
            "",
        ],
        "description": "JavaScript ES6 React Template & code snippets!"
    }
}

h5t

{
    "HTML5 Template": {
        "prefix": "h5t",
        "body": [
            "<!DOCTYPE html>",
            "<html lang=\"zh-Hans\">",
            "<head>",
            "    <meta charset=\"UTF-8\">",
            "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
            "    <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">",
            "    <meta name=\"author\" content=\"xgqfrms\">",
            "    <meta name=\"generator\" content=\"VS code\">",
            "    <title>$1</title>",
            "</head>",
            "<body>",
            "    <section>",
            "        <h1>$2</h1>",
            "        <a href=\"https://feiqa.xgqfrms.xyz/index.html\">$3</a>",
            "    </section>",
            "</body>",
            "</html>"
        ],
        "description": "HTML5 Template & code snippets!"
    }
}

@xgqfrms xgqfrms added the vscode & code snippets vscode & code snippets label Jun 25, 2018
@xyzdata
Copy link
Collaborator

xyzdata commented Apr 12, 2019

vscode & code snippets

https://www.cnblogs.com/xgqfrms/p/9226993.html

@xyzdata
Copy link
Collaborator

xyzdata commented Apr 12, 2019

json

{
    "NPM JSON Template": {
        "prefix": "njt",
        "body": [
            "{",
            "   \"name\": \"$1npm node project\",",
            "   \"description\": \"$2an open source project created by xgqfrms\",",
            "   \"author\": \"xgqfrms\",",
            "   \"version\": \"1.1.1\",",
            "   \"license\": \"MIT\",",
            "   \"private\": true,",
            "   \"scripts\": {",
            "       \"dev\": \"npm run start\",",
            "       \"app\": \"npm run build\",",
            "       \"rmrf\": \"rimraf dist/**/*\",",
            "       \"map\": \"rimraf dist/**/*.map\"",
            "   },",
            "   \"bin\": {",
            "       \"dev\": \"dev\",",
            "       \"app\": \"app\"",
            "   },",
            "   \"keywords\": [",
            "       \"Node.js\",",
            "       \"NPM\",",
            "       \"JS\"",
            "   ]",
            "",
            "}"
        ],
        "description": "NPM JSON Template & code snippets!"
    }
}

json5

JSON5

{
    "JSON5 Template": {
        "prefix": "json5",
        "body": [
            "{",
            "   \"name\": \"$1npm node project\",",
            "   \"description\": \"$2an open source project created by xgqfrms\",",
            "   \"author\": \"xgqfrms\",",
            "   \"version\": \"1.1.1\",",
            "   \"license\": \"MIT\",",
            "   \"private\": true,",
            "   \"scripts\": {",
            "       \"dev\": \"npm run start\",",
            "       \"app\": \"npm run build\",",
            "       \"rmrf\": \"rimraf dist/**/*\",",
            "       \"map\": \"rimraf dist/**/*.map\"",
            "   },",
            "   \"bin\": {",
            "       \"dev\": \"dev\",",
            "       \"app\": \"app\"",
            "   },",
            "   \"keywords\": [",
            "       \"Node.js\",",
            "       \"NPM\",",
            "       \"JS\"",
            "   ]",
            "",
            "}"
        ],
        "description": "JSON5 Template & code snippets!"
    }
}

jsonc

JSON with Comments

{
    "JSON with Comments Template": {
        "prefix": "jsonc",
        "body": [
            "{",
            "   \"name\": \"$1npm node project\",",
            "   \"description\": \"$2an open source project created by xgqfrms\",",
            "   \"author\": \"xgqfrms\",",
            "   \"version\": \"1.1.1\",",
            "   \"license\": \"MIT\",",
            "   \"private\": true,",
            "   \"scripts\": {",
            "       \"dev\": \"npm run start\",",
            "       \"app\": \"npm run build\",",
            "       \"rmrf\": \"rimraf dist/**/*\",",
            "       \"map\": \"rimraf dist/**/*.map\"",
            "   },",
            "   \"bin\": {",
            "       \"dev\": \"dev\",",
            "       \"app\": \"app\"",
            "   },",
            "   \"keywords\": [",
            "       \"Node.js\",",
            "       \"NPM\",",
            "       \"JS\"",
            "   ]",
            "",
            "}"
        ],
        "description": "JSON with Comments Template & code snippets!"
    }
}

@xgqfrms xgqfrms pinned this issue Apr 12, 2019
@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 14, 2019

log

{
    "JavaScript ES6 React Template": {
        "prefix": "js6r",
        "body": [
            "\"use strict\";",
            "",
            "/**",
            " * ",
            " * @author xgqfrms",
            " * @license MIT",
            " * @copyright xgqfrms",
            " * @created 2019-08-$1",
            " * ",
            " * @description $2",
            " * @augments $3",
            " * @example $4",
            " * @link $5",
            " * ",
            " */",
            "",
            "let log = console.log;",
            "",
            "const $2Generator = ($5datas = [], debug = false) => {",
            "    let result = ``;",
            "    // do something...",
            "    return $7result;",
            "};",
            "",
            "",
            "",
            "export default $2;",
            "",
            "export {",
            "    $2,",
            "};",
            "",
        ],
        "description": "JavaScript ES6 React Template & code snippets!"
    }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
codes snippets codes snippets html template & codes snippets html template & codes snippets vscode & code snippets vscode & code snippets
Projects
None yet
Development

No branches or pull requests

2 participants