varius official platform source code.
修订版 | 09efe77554afd7427bbc2e8056d0b5b00d133898 (tree) |
---|---|
时间 | 2023-03-29 21:23:06 |
作者 | NknightA <n.knight.pc0627@gmai...> |
Commiter | NknightA |
add files
@@ -536,6 +536,12 @@ | ||
536 | 536 | "@types/range-parser": "*" |
537 | 537 | } |
538 | 538 | }, |
539 | + "node_modules/@types/html-minifier-terser": { | |
540 | + "version": "6.1.0", | |
541 | + "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", | |
542 | + "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==", | |
543 | + "dev": true | |
544 | + }, | |
539 | 545 | "node_modules/@types/json-schema": { |
540 | 546 | "version": "7.0.11", |
541 | 547 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", |
@@ -1205,6 +1211,12 @@ | ||
1205 | 1211 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", |
1206 | 1212 | "dev": true |
1207 | 1213 | }, |
1214 | + "node_modules/boolbase": { | |
1215 | + "version": "1.0.0", | |
1216 | + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", | |
1217 | + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", | |
1218 | + "dev": true | |
1219 | + }, | |
1208 | 1220 | "node_modules/brace-expansion": { |
1209 | 1221 | "version": "1.1.11", |
1210 | 1222 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", |
@@ -1296,6 +1308,16 @@ | ||
1296 | 1308 | "node": ">=6" |
1297 | 1309 | } |
1298 | 1310 | }, |
1311 | + "node_modules/camel-case": { | |
1312 | + "version": "4.1.2", | |
1313 | + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", | |
1314 | + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", | |
1315 | + "dev": true, | |
1316 | + "dependencies": { | |
1317 | + "pascal-case": "^3.1.2", | |
1318 | + "tslib": "^2.0.3" | |
1319 | + } | |
1320 | + }, | |
1299 | 1321 | "node_modules/caniuse-lite": { |
1300 | 1322 | "version": "1.0.30001469", |
1301 | 1323 | "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001469.tgz", |
@@ -1380,6 +1402,18 @@ | ||
1380 | 1402 | "node": ">=6.0" |
1381 | 1403 | } |
1382 | 1404 | }, |
1405 | + "node_modules/clean-css": { | |
1406 | + "version": "5.2.0", | |
1407 | + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.2.0.tgz", | |
1408 | + "integrity": "sha512-2639sWGa43EMmG7fn8mdVuBSs6HuWaSor+ZPoFWzenBc6oN+td8YhTfghWXZ25G1NiiSvz8bOFBS7PdSbTiqEA==", | |
1409 | + "dev": true, | |
1410 | + "dependencies": { | |
1411 | + "source-map": "~0.6.0" | |
1412 | + }, | |
1413 | + "engines": { | |
1414 | + "node": ">= 10.0" | |
1415 | + } | |
1416 | + }, | |
1383 | 1417 | "node_modules/client-only": { |
1384 | 1418 | "version": "0.0.1", |
1385 | 1419 | "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", |
@@ -1499,6 +1533,34 @@ | ||
1499 | 1533 | "node": ">= 8" |
1500 | 1534 | } |
1501 | 1535 | }, |
1536 | + "node_modules/css-select": { | |
1537 | + "version": "4.3.0", | |
1538 | + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", | |
1539 | + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", | |
1540 | + "dev": true, | |
1541 | + "dependencies": { | |
1542 | + "boolbase": "^1.0.0", | |
1543 | + "css-what": "^6.0.1", | |
1544 | + "domhandler": "^4.3.1", | |
1545 | + "domutils": "^2.8.0", | |
1546 | + "nth-check": "^2.0.1" | |
1547 | + }, | |
1548 | + "funding": { | |
1549 | + "url": "https://github.com/sponsors/fb55" | |
1550 | + } | |
1551 | + }, | |
1552 | + "node_modules/css-what": { | |
1553 | + "version": "6.1.0", | |
1554 | + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", | |
1555 | + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", | |
1556 | + "dev": true, | |
1557 | + "engines": { | |
1558 | + "node": ">= 6" | |
1559 | + }, | |
1560 | + "funding": { | |
1561 | + "url": "https://github.com/sponsors/fb55" | |
1562 | + } | |
1563 | + }, | |
1502 | 1564 | "node_modules/csstype": { |
1503 | 1565 | "version": "3.1.1", |
1504 | 1566 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz", |
@@ -1621,6 +1683,89 @@ | ||
1621 | 1683 | "node": ">=6.0.0" |
1622 | 1684 | } |
1623 | 1685 | }, |
1686 | + "node_modules/dom-converter": { | |
1687 | + "version": "0.2.0", | |
1688 | + "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", | |
1689 | + "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", | |
1690 | + "dev": true, | |
1691 | + "dependencies": { | |
1692 | + "utila": "~0.4" | |
1693 | + } | |
1694 | + }, | |
1695 | + "node_modules/dom-serializer": { | |
1696 | + "version": "1.4.1", | |
1697 | + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", | |
1698 | + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", | |
1699 | + "dev": true, | |
1700 | + "dependencies": { | |
1701 | + "domelementtype": "^2.0.1", | |
1702 | + "domhandler": "^4.2.0", | |
1703 | + "entities": "^2.0.0" | |
1704 | + }, | |
1705 | + "funding": { | |
1706 | + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" | |
1707 | + } | |
1708 | + }, | |
1709 | + "node_modules/dom-serializer/node_modules/entities": { | |
1710 | + "version": "2.2.0", | |
1711 | + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", | |
1712 | + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", | |
1713 | + "dev": true, | |
1714 | + "funding": { | |
1715 | + "url": "https://github.com/fb55/entities?sponsor=1" | |
1716 | + } | |
1717 | + }, | |
1718 | + "node_modules/domelementtype": { | |
1719 | + "version": "2.3.0", | |
1720 | + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", | |
1721 | + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", | |
1722 | + "dev": true, | |
1723 | + "funding": [ | |
1724 | + { | |
1725 | + "type": "github", | |
1726 | + "url": "https://github.com/sponsors/fb55" | |
1727 | + } | |
1728 | + ] | |
1729 | + }, | |
1730 | + "node_modules/domhandler": { | |
1731 | + "version": "4.3.1", | |
1732 | + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", | |
1733 | + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", | |
1734 | + "dev": true, | |
1735 | + "dependencies": { | |
1736 | + "domelementtype": "^2.2.0" | |
1737 | + }, | |
1738 | + "engines": { | |
1739 | + "node": ">= 4" | |
1740 | + }, | |
1741 | + "funding": { | |
1742 | + "url": "https://github.com/fb55/domhandler?sponsor=1" | |
1743 | + } | |
1744 | + }, | |
1745 | + "node_modules/domutils": { | |
1746 | + "version": "2.8.0", | |
1747 | + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", | |
1748 | + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", | |
1749 | + "dev": true, | |
1750 | + "dependencies": { | |
1751 | + "dom-serializer": "^1.0.1", | |
1752 | + "domelementtype": "^2.2.0", | |
1753 | + "domhandler": "^4.2.0" | |
1754 | + }, | |
1755 | + "funding": { | |
1756 | + "url": "https://github.com/fb55/domutils?sponsor=1" | |
1757 | + } | |
1758 | + }, | |
1759 | + "node_modules/dot-case": { | |
1760 | + "version": "3.0.4", | |
1761 | + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", | |
1762 | + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", | |
1763 | + "dev": true, | |
1764 | + "dependencies": { | |
1765 | + "no-case": "^3.0.4", | |
1766 | + "tslib": "^2.0.3" | |
1767 | + } | |
1768 | + }, | |
1624 | 1769 | "node_modules/dotenv": { |
1625 | 1770 | "version": "16.0.3", |
1626 | 1771 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", |
@@ -1667,6 +1812,18 @@ | ||
1667 | 1812 | "node": ">=10.13.0" |
1668 | 1813 | } |
1669 | 1814 | }, |
1815 | + "node_modules/entities": { | |
1816 | + "version": "4.4.0", | |
1817 | + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", | |
1818 | + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", | |
1819 | + "dev": true, | |
1820 | + "engines": { | |
1821 | + "node": ">=0.12" | |
1822 | + }, | |
1823 | + "funding": { | |
1824 | + "url": "https://github.com/fb55/entities?sponsor=1" | |
1825 | + } | |
1826 | + }, | |
1670 | 1827 | "node_modules/envinfo": { |
1671 | 1828 | "version": "7.8.1", |
1672 | 1829 | "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", |
@@ -2748,6 +2905,158 @@ | ||
2748 | 2905 | "url": "https://github.com/sponsors/ljharb" |
2749 | 2906 | } |
2750 | 2907 | }, |
2908 | + "node_modules/he": { | |
2909 | + "version": "1.2.0", | |
2910 | + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", | |
2911 | + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", | |
2912 | + "dev": true, | |
2913 | + "bin": { | |
2914 | + "he": "bin/he" | |
2915 | + } | |
2916 | + }, | |
2917 | + "node_modules/html-loader": { | |
2918 | + "version": "4.2.0", | |
2919 | + "resolved": "https://registry.npmjs.org/html-loader/-/html-loader-4.2.0.tgz", | |
2920 | + "integrity": "sha512-OxCHD3yt+qwqng2vvcaPApCEvbx+nXWu+v69TYHx1FO8bffHn/JjHtE3TTQZmHjwvnJe4xxzuecetDVBrQR1Zg==", | |
2921 | + "dev": true, | |
2922 | + "dependencies": { | |
2923 | + "html-minifier-terser": "^7.0.0", | |
2924 | + "parse5": "^7.0.0" | |
2925 | + }, | |
2926 | + "engines": { | |
2927 | + "node": ">= 14.15.0" | |
2928 | + }, | |
2929 | + "funding": { | |
2930 | + "type": "opencollective", | |
2931 | + "url": "https://opencollective.com/webpack" | |
2932 | + }, | |
2933 | + "peerDependencies": { | |
2934 | + "webpack": "^5.0.0" | |
2935 | + } | |
2936 | + }, | |
2937 | + "node_modules/html-minifier-terser": { | |
2938 | + "version": "7.1.0", | |
2939 | + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-7.1.0.tgz", | |
2940 | + "integrity": "sha512-BvPO2S7Ip0Q5qt+Y8j/27Vclj6uHC6av0TMoDn7/bJPhMWHI2UtR2e/zEgJn3/qYAmxumrGp9q4UHurL6mtW9Q==", | |
2941 | + "dev": true, | |
2942 | + "dependencies": { | |
2943 | + "camel-case": "^4.1.2", | |
2944 | + "clean-css": "5.2.0", | |
2945 | + "commander": "^9.4.1", | |
2946 | + "entities": "^4.4.0", | |
2947 | + "param-case": "^3.0.4", | |
2948 | + "relateurl": "^0.2.7", | |
2949 | + "terser": "^5.15.1" | |
2950 | + }, | |
2951 | + "bin": { | |
2952 | + "html-minifier-terser": "cli.js" | |
2953 | + }, | |
2954 | + "engines": { | |
2955 | + "node": "^14.13.1 || >=16.0.0" | |
2956 | + } | |
2957 | + }, | |
2958 | + "node_modules/html-minifier-terser/node_modules/commander": { | |
2959 | + "version": "9.5.0", | |
2960 | + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", | |
2961 | + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", | |
2962 | + "dev": true, | |
2963 | + "engines": { | |
2964 | + "node": "^12.20.0 || >=14" | |
2965 | + } | |
2966 | + }, | |
2967 | + "node_modules/html-webpack-plugin": { | |
2968 | + "version": "5.5.0", | |
2969 | + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.0.tgz", | |
2970 | + "integrity": "sha512-sy88PC2cRTVxvETRgUHFrL4No3UxvcH8G1NepGhqaTT+GXN2kTamqasot0inS5hXeg1cMbFDt27zzo9p35lZVw==", | |
2971 | + "dev": true, | |
2972 | + "dependencies": { | |
2973 | + "@types/html-minifier-terser": "^6.0.0", | |
2974 | + "html-minifier-terser": "^6.0.2", | |
2975 | + "lodash": "^4.17.21", | |
2976 | + "pretty-error": "^4.0.0", | |
2977 | + "tapable": "^2.0.0" | |
2978 | + }, | |
2979 | + "engines": { | |
2980 | + "node": ">=10.13.0" | |
2981 | + }, | |
2982 | + "funding": { | |
2983 | + "type": "opencollective", | |
2984 | + "url": "https://opencollective.com/html-webpack-plugin" | |
2985 | + }, | |
2986 | + "peerDependencies": { | |
2987 | + "webpack": "^5.20.0" | |
2988 | + } | |
2989 | + }, | |
2990 | + "node_modules/html-webpack-plugin/node_modules/clean-css": { | |
2991 | + "version": "5.3.2", | |
2992 | + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", | |
2993 | + "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", | |
2994 | + "dev": true, | |
2995 | + "dependencies": { | |
2996 | + "source-map": "~0.6.0" | |
2997 | + }, | |
2998 | + "engines": { | |
2999 | + "node": ">= 10.0" | |
3000 | + } | |
3001 | + }, | |
3002 | + "node_modules/html-webpack-plugin/node_modules/commander": { | |
3003 | + "version": "8.3.0", | |
3004 | + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", | |
3005 | + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", | |
3006 | + "dev": true, | |
3007 | + "engines": { | |
3008 | + "node": ">= 12" | |
3009 | + } | |
3010 | + }, | |
3011 | + "node_modules/html-webpack-plugin/node_modules/html-minifier-terser": { | |
3012 | + "version": "6.1.0", | |
3013 | + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", | |
3014 | + "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", | |
3015 | + "dev": true, | |
3016 | + "dependencies": { | |
3017 | + "camel-case": "^4.1.2", | |
3018 | + "clean-css": "^5.2.2", | |
3019 | + "commander": "^8.3.0", | |
3020 | + "he": "^1.2.0", | |
3021 | + "param-case": "^3.0.4", | |
3022 | + "relateurl": "^0.2.7", | |
3023 | + "terser": "^5.10.0" | |
3024 | + }, | |
3025 | + "bin": { | |
3026 | + "html-minifier-terser": "cli.js" | |
3027 | + }, | |
3028 | + "engines": { | |
3029 | + "node": ">=12" | |
3030 | + } | |
3031 | + }, | |
3032 | + "node_modules/htmlparser2": { | |
3033 | + "version": "6.1.0", | |
3034 | + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", | |
3035 | + "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", | |
3036 | + "dev": true, | |
3037 | + "funding": [ | |
3038 | + "https://github.com/fb55/htmlparser2?sponsor=1", | |
3039 | + { | |
3040 | + "type": "github", | |
3041 | + "url": "https://github.com/sponsors/fb55" | |
3042 | + } | |
3043 | + ], | |
3044 | + "dependencies": { | |
3045 | + "domelementtype": "^2.0.1", | |
3046 | + "domhandler": "^4.0.0", | |
3047 | + "domutils": "^2.5.2", | |
3048 | + "entities": "^2.0.0" | |
3049 | + } | |
3050 | + }, | |
3051 | + "node_modules/htmlparser2/node_modules/entities": { | |
3052 | + "version": "2.2.0", | |
3053 | + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", | |
3054 | + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", | |
3055 | + "dev": true, | |
3056 | + "funding": { | |
3057 | + "url": "https://github.com/fb55/entities?sponsor=1" | |
3058 | + } | |
3059 | + }, | |
2751 | 3060 | "node_modules/http-errors": { |
2752 | 3061 | "version": "2.0.0", |
2753 | 3062 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", |
@@ -3377,6 +3686,12 @@ | ||
3377 | 3686 | "url": "https://github.com/sponsors/sindresorhus" |
3378 | 3687 | } |
3379 | 3688 | }, |
3689 | + "node_modules/lodash": { | |
3690 | + "version": "4.17.21", | |
3691 | + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", | |
3692 | + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", | |
3693 | + "dev": true | |
3694 | + }, | |
3380 | 3695 | "node_modules/lodash.merge": { |
3381 | 3696 | "version": "4.6.2", |
3382 | 3697 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", |
@@ -3393,6 +3708,15 @@ | ||
3393 | 3708 | "loose-envify": "cli.js" |
3394 | 3709 | } |
3395 | 3710 | }, |
3711 | + "node_modules/lower-case": { | |
3712 | + "version": "2.0.2", | |
3713 | + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", | |
3714 | + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", | |
3715 | + "dev": true, | |
3716 | + "dependencies": { | |
3717 | + "tslib": "^2.0.3" | |
3718 | + } | |
3719 | + }, | |
3396 | 3720 | "node_modules/lru-cache": { |
3397 | 3721 | "version": "6.0.0", |
3398 | 3722 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", |
@@ -3597,6 +3921,16 @@ | ||
3597 | 3921 | } |
3598 | 3922 | } |
3599 | 3923 | }, |
3924 | + "node_modules/no-case": { | |
3925 | + "version": "3.0.4", | |
3926 | + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", | |
3927 | + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", | |
3928 | + "dev": true, | |
3929 | + "dependencies": { | |
3930 | + "lower-case": "^2.0.2", | |
3931 | + "tslib": "^2.0.3" | |
3932 | + } | |
3933 | + }, | |
3600 | 3934 | "node_modules/node-releases": { |
3601 | 3935 | "version": "2.0.10", |
3602 | 3936 | "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz", |
@@ -3693,6 +4027,18 @@ | ||
3693 | 4027 | "node": ">=0.10.0" |
3694 | 4028 | } |
3695 | 4029 | }, |
4030 | + "node_modules/nth-check": { | |
4031 | + "version": "2.1.1", | |
4032 | + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", | |
4033 | + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", | |
4034 | + "dev": true, | |
4035 | + "dependencies": { | |
4036 | + "boolbase": "^1.0.0" | |
4037 | + }, | |
4038 | + "funding": { | |
4039 | + "url": "https://github.com/fb55/nth-check?sponsor=1" | |
4040 | + } | |
4041 | + }, | |
3696 | 4042 | "node_modules/object-assign": { |
3697 | 4043 | "version": "4.1.1", |
3698 | 4044 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", |
@@ -3900,6 +4246,16 @@ | ||
3900 | 4246 | "resolved": "https://registry.npmjs.org/packet-reader/-/packet-reader-1.0.0.tgz", |
3901 | 4247 | "integrity": "sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==" |
3902 | 4248 | }, |
4249 | + "node_modules/param-case": { | |
4250 | + "version": "3.0.4", | |
4251 | + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", | |
4252 | + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", | |
4253 | + "dev": true, | |
4254 | + "dependencies": { | |
4255 | + "dot-case": "^3.0.4", | |
4256 | + "tslib": "^2.0.3" | |
4257 | + } | |
4258 | + }, | |
3903 | 4259 | "node_modules/parent-module": { |
3904 | 4260 | "version": "1.0.1", |
3905 | 4261 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", |
@@ -3911,6 +4267,18 @@ | ||
3911 | 4267 | "node": ">=6" |
3912 | 4268 | } |
3913 | 4269 | }, |
4270 | + "node_modules/parse5": { | |
4271 | + "version": "7.1.2", | |
4272 | + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", | |
4273 | + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", | |
4274 | + "dev": true, | |
4275 | + "dependencies": { | |
4276 | + "entities": "^4.4.0" | |
4277 | + }, | |
4278 | + "funding": { | |
4279 | + "url": "https://github.com/inikulin/parse5?sponsor=1" | |
4280 | + } | |
4281 | + }, | |
3914 | 4282 | "node_modules/parseurl": { |
3915 | 4283 | "version": "1.3.3", |
3916 | 4284 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", |
@@ -3920,6 +4288,16 @@ | ||
3920 | 4288 | "node": ">= 0.8" |
3921 | 4289 | } |
3922 | 4290 | }, |
4291 | + "node_modules/pascal-case": { | |
4292 | + "version": "3.1.2", | |
4293 | + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", | |
4294 | + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", | |
4295 | + "dev": true, | |
4296 | + "dependencies": { | |
4297 | + "no-case": "^3.0.4", | |
4298 | + "tslib": "^2.0.3" | |
4299 | + } | |
4300 | + }, | |
3923 | 4301 | "node_modules/path-exists": { |
3924 | 4302 | "version": "4.0.0", |
3925 | 4303 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", |
@@ -4183,6 +4561,16 @@ | ||
4183 | 4561 | "node": ">= 0.8.0" |
4184 | 4562 | } |
4185 | 4563 | }, |
4564 | + "node_modules/pretty-error": { | |
4565 | + "version": "4.0.0", | |
4566 | + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", | |
4567 | + "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", | |
4568 | + "dev": true, | |
4569 | + "dependencies": { | |
4570 | + "lodash": "^4.17.20", | |
4571 | + "renderkid": "^3.0.0" | |
4572 | + } | |
4573 | + }, | |
4186 | 4574 | "node_modules/prop-types": { |
4187 | 4575 | "version": "15.8.1", |
4188 | 4576 | "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", |
@@ -4375,6 +4763,28 @@ | ||
4375 | 4763 | "url": "https://github.com/sponsors/ljharb" |
4376 | 4764 | } |
4377 | 4765 | }, |
4766 | + "node_modules/relateurl": { | |
4767 | + "version": "0.2.7", | |
4768 | + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", | |
4769 | + "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", | |
4770 | + "dev": true, | |
4771 | + "engines": { | |
4772 | + "node": ">= 0.10" | |
4773 | + } | |
4774 | + }, | |
4775 | + "node_modules/renderkid": { | |
4776 | + "version": "3.0.0", | |
4777 | + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", | |
4778 | + "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", | |
4779 | + "dev": true, | |
4780 | + "dependencies": { | |
4781 | + "css-select": "^4.1.3", | |
4782 | + "dom-converter": "^0.2.0", | |
4783 | + "htmlparser2": "^6.1.0", | |
4784 | + "lodash": "^4.17.21", | |
4785 | + "strip-ansi": "^6.0.1" | |
4786 | + } | |
4787 | + }, | |
4378 | 4788 | "node_modules/reselect": { |
4379 | 4789 | "version": "4.1.7", |
4380 | 4790 | "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.7.tgz", |
@@ -5181,6 +5591,12 @@ | ||
5181 | 5591 | "punycode": "^2.1.0" |
5182 | 5592 | } |
5183 | 5593 | }, |
5594 | + "node_modules/utila": { | |
5595 | + "version": "0.4.0", | |
5596 | + "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", | |
5597 | + "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==", | |
5598 | + "dev": true | |
5599 | + }, | |
5184 | 5600 | "node_modules/utils-merge": { |
5185 | 5601 | "version": "1.0.1", |
5186 | 5602 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", |
@@ -5330,6 +5746,15 @@ | ||
5330 | 5746 | "node": ">=10.0.0" |
5331 | 5747 | } |
5332 | 5748 | }, |
5749 | + "node_modules/webpack-node-externals": { | |
5750 | + "version": "3.0.0", | |
5751 | + "resolved": "https://registry.npmjs.org/webpack-node-externals/-/webpack-node-externals-3.0.0.tgz", | |
5752 | + "integrity": "sha512-LnL6Z3GGDPht/AigwRh2dvL9PQPFQ8skEpVrWZXLWBYmqcaojHNN0onvHzie6rq7EWKrrBfPYqNEzTJgiwEQDQ==", | |
5753 | + "dev": true, | |
5754 | + "engines": { | |
5755 | + "node": ">=6" | |
5756 | + } | |
5757 | + }, | |
5333 | 5758 | "node_modules/webpack-sources": { |
5334 | 5759 | "version": "3.2.3", |
5335 | 5760 | "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", |
@@ -5468,7 +5893,7 @@ | ||
5468 | 5893 | }, |
5469 | 5894 | "server": { |
5470 | 5895 | "name": "v2", |
5471 | - "version": "0.4.41", | |
5896 | + "version": "0.4.43", | |
5472 | 5897 | "license": "ISC", |
5473 | 5898 | "dependencies": { |
5474 | 5899 | "@reduxjs/toolkit": "^1.9.3", |
@@ -5490,7 +5915,12 @@ | ||
5490 | 5915 | "devDependencies": { |
5491 | 5916 | "cross-env": "^7.0.3", |
5492 | 5917 | "express": "^4.18.2", |
5493 | - "nodemon": "^2.0.21" | |
5918 | + "html-loader": "^4.2.0", | |
5919 | + "html-webpack-plugin": "^5.5.0", | |
5920 | + "nodemon": "^2.0.21", | |
5921 | + "webpack": "^5.76.3", | |
5922 | + "webpack-cli": "^5.0.1", | |
5923 | + "webpack-node-externals": "^3.0.0" | |
5494 | 5924 | } |
5495 | 5925 | } |
5496 | 5926 | } |
@@ -7,7 +7,9 @@ | ||
7 | 7 | "doc": "docs" |
8 | 8 | }, |
9 | 9 | "scripts": { |
10 | - "server:start": "npm run dev --prefix server" | |
10 | + "server:start": "npm run dev --prefix server", | |
11 | + "server:build": "npm run build --prefix server", | |
12 | + "server:pre-build": "npm run pre-build --prefix server" | |
11 | 13 | }, |
12 | 14 | "keywords": [], |
13 | 15 | "author": "", |
@@ -0,0 +1,57 @@ | ||
1 | +<!DOCTYPE html> | |
2 | +<html lang="en"> | |
3 | +<head> | |
4 | + <meta charSet="utf-8"/> | |
5 | + <meta name="viewport" content="width=device-width"/> | |
6 | + <title>V</title> | |
7 | + <link rel="preload" as="image" | |
8 | + imageSrcSet="/_next/image?url=%2Fimage_4.png&w=1080&q=75 1x, /_next/image?url=%2Fimage_4.png&w=1920&q=75 2x"/> | |
9 | + <meta name="next-head-count" content="4"/> | |
10 | + <title>a</title> | |
11 | + <meta name="description" content="Generated by create next app"/> | |
12 | + <meta name="viewport" content="width=device-width, initial-scale=1"/> | |
13 | + <link rel="icon" href="/favicon.ico"/> | |
14 | + <link rel="preload" href="/_next/static/css/fc399facb609aec1.css" as="style"/> | |
15 | + <link rel="stylesheet" href="/_next/static/css/fc399facb609aec1.css" data-n-g=""/> | |
16 | + <link rel="preload" href="/_next/static/css/3b4444d838cfa577.css" as="style"/> | |
17 | + <link rel="stylesheet" href="/_next/static/css/3b4444d838cfa577.css" data-n-p=""/> | |
18 | + <noscript data-n-css=""></noscript> | |
19 | + <script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script> | |
20 | + <script src="/_next/static/chunks/webpack-8fa1640cc84ba8fe.js" defer=""></script> | |
21 | + <script src="/_next/static/chunks/framework-dc93e1cf80dc037b.js" defer=""></script> | |
22 | + <script src="/_next/static/chunks/main-063cc6c43a5ad6c0.js" defer=""></script> | |
23 | + <script src="/_next/static/chunks/pages/_app-f60fe80be49ad0e1.js" defer=""></script> | |
24 | + <script src="/_next/static/chunks/pages/index-8ba8eb7133511b88.js" defer=""></script> | |
25 | + <script src="/_next/static/DMIWcNq0rAl2qZflrvEJP/_buildManifest.js" defer=""></script> | |
26 | + <script src="/_next/static/DMIWcNq0rAl2qZflrvEJP/_ssgManifest.js" defer=""></script> | |
27 | +</head> | |
28 | +<body> | |
29 | +<header><h1>V</h1></header> | |
30 | +<div id="__next"> | |
31 | + <div class="home_container__mCmuj"> | |
32 | + <main><img alt="Logo" width="896" height="345" decoding="async" data-nimg="1" style="color:transparent" | |
33 | + src="/images/logo.png"/> | |
34 | + <p>insert code is : <!-- --> {process.env.NODE_ENV}<!-- --> .</p> | |
35 | + <p>How to insert code is edit index.tsx</p> | |
36 | + <div><h1>Create Account</h1>,<label for="email">Email | |
37 | + <form><input type="email" value=""/></form> | |
38 | + <form><input type="password" value=""/></form> | |
39 | + <button type="submit">Create Account</button> | |
40 | + </label></div> | |
41 | + <p> development mode </p></main> | |
42 | + </div> | |
43 | +</div> | |
44 | +<script id="__NEXT_DATA__" type="application/json">{ | |
45 | + "props": { | |
46 | + "pageProps": {} | |
47 | + }, | |
48 | + "page": "/", | |
49 | + "query": {}, | |
50 | + "buildId": "DMIWcNq0rAl2qZflrvEJP", | |
51 | + "nextExport": true, | |
52 | + "autoExport": true, | |
53 | + "isFallback": false, | |
54 | + "scriptLoader": [] | |
55 | +}</script> | |
56 | +</body> | |
57 | +</html> | |
\ No newline at end of file |
@@ -1,12 +0,0 @@ | ||
1 | -"use strict"; | |
2 | -var __importDefault = (this && this.__importDefault) || function (mod) { | |
3 | - return (mod && mod.__esModule) ? mod : { "default": mod }; | |
4 | -}; | |
5 | -Object.defineProperty(exports, "__esModule", { value: true }); | |
6 | -var background_module_sass_1 = __importDefault(require("./background.module.sass")); | |
7 | -function Background() { | |
8 | - return (<div className={background_module_sass_1.default.Main}> | |
9 | - <h1>Awesome METAVERSE...</h1> | |
10 | - </div>); | |
11 | -} | |
12 | -exports.default = Background; |
@@ -1,21 +0,0 @@ | ||
1 | -"use strict"; | |
2 | -Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | -exports.Box = void 0; | |
4 | -var Box = function (_a) { | |
5 | - var children = _a.children, w = _a.w, display = _a.display, bgColor = _a.bgColor, h = _a.h, m = _a.m, p = _a.p, jc = _a.jc, ai = _a.ai, textSize = _a.textSize; | |
6 | - return (<div style={{ | |
7 | - backgroundColor: bgColor, | |
8 | - color: '#000', | |
9 | - height: h, | |
10 | - width: w, | |
11 | - display: display, | |
12 | - justifyContent: jc, | |
13 | - alignItems: ai, | |
14 | - padding: p, | |
15 | - margin: m, | |
16 | - fontSize: textSize | |
17 | - }}> | |
18 | - {children} | |
19 | - </div>); | |
20 | -}; | |
21 | -exports.Box = Box; |
@@ -1,14 +0,0 @@ | ||
1 | -"use strict"; | |
2 | -Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | -exports.devmode = void 0; | |
4 | -var devmode = function () { | |
5 | - var dev = 'dev'; | |
6 | - var pud = 'pud'; | |
7 | - if (process.env.NODE_ENV === "development") { | |
8 | - return dev; | |
9 | - } | |
10 | - else { | |
11 | - return pud; | |
12 | - } | |
13 | -}; | |
14 | -exports.devmode = devmode; |
@@ -0,0 +1,69 @@ | ||
1 | +Html Webpack Plugin: | |
2 | +<pre> | |
3 | + Error: Child compilation failed: | |
4 | + Module not found: Error: Can't resolve 'C:\Users\nknig\varius\V\V\server\index.html' in 'C:\Users\nknig\varius\V\V\server' | |
5 | + ModuleNotFoundError: Module not found: Error: Can't resolve 'C:\Users\nknig\varius\V\V\server\index.html' in 'C:\Users\nknig\varius\V\V\server' | |
6 | + at C:\Users\nknig\varius\V\V\node_modules\webpack\lib\Compilation.js:2016:28 | |
7 | + at C:\Users\nknig\varius\V\V\node_modules\webpack\lib\NormalModuleFactory.js:798:13 | |
8 | + at eval (eval at create (C:\Users\nknig\varius\V\V\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:10:1) | |
9 | + at C:\Users\nknig\varius\V\V\node_modules\webpack\lib\NormalModuleFactory.js:270:22 | |
10 | + at eval (eval at create (C:\Users\nknig\varius\V\V\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:9:1) | |
11 | + at C:\Users\nknig\varius\V\V\node_modules\webpack\lib\NormalModuleFactory.js:434:22 | |
12 | + at C:\Users\nknig\varius\V\V\node_modules\webpack\lib\NormalModuleFactory.js:120:11 | |
13 | + at C:\Users\nknig\varius\V\V\node_modules\webpack\lib\NormalModuleFactory.js:670:25 | |
14 | + at C:\Users\nknig\varius\V\V\node_modules\webpack\lib\NormalModuleFactory.js:855:8 | |
15 | + at C:\Users\nknig\varius\V\V\node_modules\webpack\lib\NormalModuleFactory.js:975:5 | |
16 | + | |
17 | + - Compilation.js:2016 | |
18 | + [V]/[webpack]/lib/Compilation.js:2016:28 | |
19 | + | |
20 | + - NormalModuleFactory.js:798 | |
21 | + [V]/[webpack]/lib/NormalModuleFactory.js:798:13 | |
22 | + | |
23 | + | |
24 | + - NormalModuleFactory.js:270 | |
25 | + [V]/[webpack]/lib/NormalModuleFactory.js:270:22 | |
26 | + | |
27 | + | |
28 | + - NormalModuleFactory.js:434 | |
29 | + [V]/[webpack]/lib/NormalModuleFactory.js:434:22 | |
30 | + | |
31 | + - NormalModuleFactory.js:120 | |
32 | + [V]/[webpack]/lib/NormalModuleFactory.js:120:11 | |
33 | + | |
34 | + - NormalModuleFactory.js:670 | |
35 | + [V]/[webpack]/lib/NormalModuleFactory.js:670:25 | |
36 | + | |
37 | + - NormalModuleFactory.js:855 | |
38 | + [V]/[webpack]/lib/NormalModuleFactory.js:855:8 | |
39 | + | |
40 | + - NormalModuleFactory.js:975 | |
41 | + [V]/[webpack]/lib/NormalModuleFactory.js:975:5 | |
42 | + | |
43 | + - child-compiler.js:169 | |
44 | + [V]/[html-webpack-plugin]/lib/child-compiler.js:169:18 | |
45 | + | |
46 | + - Compiler.js:551 finalCallback | |
47 | + [V]/[webpack]/lib/Compiler.js:551:5 | |
48 | + | |
49 | + - Compiler.js:577 | |
50 | + [V]/[webpack]/lib/Compiler.js:577:11 | |
51 | + | |
52 | + - Compiler.js:1196 | |
53 | + [V]/[webpack]/lib/Compiler.js:1196:17 | |
54 | + | |
55 | + | |
56 | + - Hook.js:18 Hook.CALL_ASYNC_DELEGATE [as _callAsync] | |
57 | + [V]/[tapable]/lib/Hook.js:18:14 | |
58 | + | |
59 | + - Compiler.js:1192 | |
60 | + [V]/[webpack]/lib/Compiler.js:1192:33 | |
61 | + | |
62 | + - Compilation.js:2787 finalCallback | |
63 | + [V]/[webpack]/lib/Compilation.js:2787:11 | |
64 | + | |
65 | + - Compilation.js:3092 | |
66 | + [V]/[webpack]/lib/Compilation.js:3092:11 | |
67 | + | |
68 | + | |
69 | +</pre> | |
\ No newline at end of file |
@@ -1,8 +0,0 @@ | ||
1 | -"use strict"; | |
2 | -Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | -require("@/styles/globals.css"); | |
4 | -function App(_a) { | |
5 | - var Component = _a.Component, pageProps = _a.pageProps; | |
6 | - return <Component {...pageProps}/>; | |
7 | -} | |
8 | -exports.default = App; |
@@ -1,18 +0,0 @@ | ||
1 | -"use strict"; | |
2 | -Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | -var document_1 = require("next/document"); | |
4 | -function Document() { | |
5 | - return (<document_1.Html lang="en"> | |
6 | - <document_1.Head> | |
7 | - <div> | |
8 | - <h1>VARIUS App</h1> | |
9 | - <p>App mode : {process.env.NODE_ENV}</p> | |
10 | - </div> | |
11 | - </document_1.Head> | |
12 | - <body> | |
13 | - <document_1.Main /> | |
14 | - <document_1.NextScript /> | |
15 | - </body> | |
16 | - </document_1.Html>); | |
17 | -} | |
18 | -exports.default = Document; |
@@ -1,78 +0,0 @@ | ||
1 | -"use strict"; | |
2 | -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | |
3 | - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | |
4 | - return new (P || (P = Promise))(function (resolve, reject) { | |
5 | - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | |
6 | - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | |
7 | - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | |
8 | - step((generator = generator.apply(thisArg, _arguments || [])).next()); | |
9 | - }); | |
10 | -}; | |
11 | -var __generator = (this && this.__generator) || function (thisArg, body) { | |
12 | - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | |
13 | - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | |
14 | - function verb(n) { return function (v) { return step([n, v]); }; } | |
15 | - function step(op) { | |
16 | - if (f) throw new TypeError("Generator is already executing."); | |
17 | - while (g && (g = 0, op[0] && (_ = 0)), _) try { | |
18 | - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | |
19 | - if (y = 0, t) op = [op[0] & 2, t.value]; | |
20 | - switch (op[0]) { | |
21 | - case 0: case 1: t = op; break; | |
22 | - case 4: _.label++; return { value: op[1], done: false }; | |
23 | - case 5: _.label++; y = op[1]; op = [0]; continue; | |
24 | - case 7: op = _.ops.pop(); _.trys.pop(); continue; | |
25 | - default: | |
26 | - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | |
27 | - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | |
28 | - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | |
29 | - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | |
30 | - if (t[2]) _.ops.pop(); | |
31 | - _.trys.pop(); continue; | |
32 | - } | |
33 | - op = body.call(thisArg, _); | |
34 | - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | |
35 | - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | |
36 | - } | |
37 | -}; | |
38 | -Object.defineProperty(exports, "__esModule", { value: true }); | |
39 | -var react_1 = require("react"); | |
40 | -function CreateAccount() { | |
41 | - var _this = this; | |
42 | - var _a = (0, react_1.useState)(""), email = _a[0], setEmail = _a[1]; | |
43 | - var _b = (0, react_1.useState)(""), password = _b[0], setPassword = _b[1]; | |
44 | - var handleSubmit = function () { return __awaiter(_this, void 0, void 0, function () { | |
45 | - var response, data; | |
46 | - return __generator(this, function (_a) { | |
47 | - switch (_a.label) { | |
48 | - case 0: return [4 /*yield*/, fetch("/api/account", { | |
49 | - method: "POST", | |
50 | - headers: { | |
51 | - "Content-Type": "application/json", | |
52 | - }, | |
53 | - body: JSON.stringify({ email: email, password: password }), | |
54 | - })]; | |
55 | - case 1: | |
56 | - response = _a.sent(); | |
57 | - return [4 /*yield*/, response.json()]; | |
58 | - case 2: | |
59 | - data = _a.sent(); | |
60 | - console.log(data); | |
61 | - return [2 /*return*/]; | |
62 | - } | |
63 | - }); | |
64 | - }); }; | |
65 | - return (<div> | |
66 | - <h1>Create Account</h1>, | |
67 | - <label htmlFor="email">Email | |
68 | - <form onSubmit={handleSubmit}> | |
69 | - <input type="email" value={email} onChange={function (e) { return setEmail(e.target.value); }}/> | |
70 | - </form> | |
71 | - <form onSubmit={handleSubmit}> | |
72 | - <input type="password" value={password} onChange={function (e) { return setPassword(e.target.value); }}/> | |
73 | - </form> | |
74 | - <button type="submit">Create Account</button> | |
75 | - </label> | |
76 | - </div>); | |
77 | -} | |
78 | -exports.default = CreateAccount; |
@@ -1,6 +0,0 @@ | ||
1 | -"use strict"; | |
2 | -Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | -function handler(req, res) { | |
4 | - res.status(200).json({ name: 'John Doe' }); | |
5 | -} | |
6 | -exports.default = handler; |
@@ -1,39 +0,0 @@ | ||
1 | -"use strict"; | |
2 | -var __importDefault = (this && this.__importDefault) || function (mod) { | |
3 | - return (mod && mod.__esModule) ? mod : { "default": mod }; | |
4 | -}; | |
5 | -Object.defineProperty(exports, "__esModule", { value: true }); | |
6 | -var head_1 = __importDefault(require("next/head")); | |
7 | -var image_1 = __importDefault(require("next/image")); | |
8 | -//import { Inter } from 'next/font/google' | |
9 | -var Home_module_css_1 = __importDefault(require("@/styles/Home.module.css")); | |
10 | -var home_module_sass_1 = __importDefault(require("../styles/home.module.sass")); | |
11 | -//import Returnstatus from "@/status/store"; | |
12 | -// fixed error... | |
13 | -var account_1 = __importDefault(require("@/pages/account")); | |
14 | -function Home() { | |
15 | - var Devmode = function () { | |
16 | - if (process.env.NODE_ENV === "development") { | |
17 | - return (<p> development mode </p>); | |
18 | - } | |
19 | - else { | |
20 | - return (<p> development mode </p>); | |
21 | - } | |
22 | - }; | |
23 | - return (<div className={home_module_sass_1.default.container}> | |
24 | - <head_1.default> | |
25 | - <title>V : {process.env.NODE_ENV} mode</title> | |
26 | - <meta name="description" content="Generated by create next app"/> | |
27 | - <meta name="viewport" content="width=device-width, initial-scale=1"/> | |
28 | - <link rel="icon" href="/favicon.ico"/> | |
29 | - </head_1.default> | |
30 | - <main className={Home_module_css_1.default.main}> | |
31 | - <image_1.default src="/image.jpg" alt="Logo" className={Home_module_css_1.default.vercelLogo} width={500} height={500} priority/> | |
32 | - <p>insert code is : {' {process.env.NODE_ENV}'}.</p> | |
33 | - <p>How to insert code is edit index.tsx</p> | |
34 | - <account_1.default /> | |
35 | - <Devmode /> | |
36 | - </main> | |
37 | - </div>); | |
38 | -} | |
39 | -exports.default = Home; |
@@ -0,0 +1,14 @@ | ||
1 | +/* | |
2 | + * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). | |
3 | + * This devtool is neither made for production nor for readable output files. | |
4 | + * It uses "eval()" calls to create a separate source file in the browser devtools. | |
5 | + * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) | |
6 | + * or disable the default devtool with "devtool: false". | |
7 | + * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). | |
8 | + */ | |
9 | +/******/ (() => { // webpackBootstrap | |
10 | +/******/ "use strict"; | |
11 | +/******/ | |
12 | +/******/ | |
13 | +/******/ })() | |
14 | +; | |
\ No newline at end of file |
@@ -1,72 +0,0 @@ | ||
1 | -"use strict"; | |
2 | -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | |
3 | - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | |
4 | - return new (P || (P = Promise))(function (resolve, reject) { | |
5 | - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | |
6 | - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | |
7 | - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | |
8 | - step((generator = generator.apply(thisArg, _arguments || [])).next()); | |
9 | - }); | |
10 | -}; | |
11 | -var __generator = (this && this.__generator) || function (thisArg, body) { | |
12 | - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | |
13 | - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | |
14 | - function verb(n) { return function (v) { return step([n, v]); }; } | |
15 | - function step(op) { | |
16 | - if (f) throw new TypeError("Generator is already executing."); | |
17 | - while (g && (g = 0, op[0] && (_ = 0)), _) try { | |
18 | - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | |
19 | - if (y = 0, t) op = [op[0] & 2, t.value]; | |
20 | - switch (op[0]) { | |
21 | - case 0: case 1: t = op; break; | |
22 | - case 4: _.label++; return { value: op[1], done: false }; | |
23 | - case 5: _.label++; y = op[1]; op = [0]; continue; | |
24 | - case 7: op = _.ops.pop(); _.trys.pop(); continue; | |
25 | - default: | |
26 | - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | |
27 | - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | |
28 | - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | |
29 | - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | |
30 | - if (t[2]) _.ops.pop(); | |
31 | - _.trys.pop(); continue; | |
32 | - } | |
33 | - op = body.call(thisArg, _); | |
34 | - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | |
35 | - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | |
36 | - } | |
37 | -}; | |
38 | -var __importDefault = (this && this.__importDefault) || function (mod) { | |
39 | - return (mod && mod.__esModule) ? mod : { "default": mod }; | |
40 | -}; | |
41 | -Object.defineProperty(exports, "__esModule", { value: true }); | |
42 | -var express_1 = __importDefault(require("express")); | |
43 | -var next_1 = __importDefault(require("next")); | |
44 | -var dev = process.env.NODE_ENV === "development"; | |
45 | -var port = 4100; | |
46 | -var app = (0, next_1.default)({ dev: dev }); | |
47 | -var handle = app.getRequestHandler(); | |
48 | -(function () { return __awaiter(void 0, void 0, void 0, function () { | |
49 | - var server, e_1; | |
50 | - return __generator(this, function (_a) { | |
51 | - switch (_a.label) { | |
52 | - case 0: | |
53 | - _a.trys.push([0, 2, , 3]); | |
54 | - return [4 /*yield*/, app.prepare()]; | |
55 | - case 1: | |
56 | - _a.sent(); | |
57 | - server = (0, express_1.default)(); | |
58 | - server.all("*", function (req, res) { | |
59 | - return handle(req, res); | |
60 | - }); | |
61 | - server.listen(port, function () { | |
62 | - console.log("http://localhost:".concat(port, " \u0D9E\u0D9E\u0DA9")); | |
63 | - }); | |
64 | - return [3 /*break*/, 3]; | |
65 | - case 2: | |
66 | - e_1 = _a.sent(); | |
67 | - console.error(e_1); | |
68 | - return [3 /*break*/, 3]; | |
69 | - case 3: return [2 /*return*/]; | |
70 | - } | |
71 | - }); | |
72 | -}); })(); |
@@ -1,25 +0,0 @@ | ||
1 | -"use strict"; | |
2 | -var __importDefault = (this && this.__importDefault) || function (mod) { | |
3 | - return (mod && mod.__esModule) ? mod : { "default": mod }; | |
4 | -}; | |
5 | -Object.defineProperty(exports, "__esModule", { value: true }); | |
6 | -var toolkit_1 = require("@reduxjs/toolkit"); | |
7 | -var react_1 = __importDefault(require("react")); | |
8 | -function countterReducer(_a) { | |
9 | - var _b = _a.state, state = _b === void 0 ? { value: 1 } : _b, action = _a.action; | |
10 | - switch (action.type) { | |
11 | - case "increment": | |
12 | - return state + 1; | |
13 | - case "decrement": | |
14 | - return state - 1; | |
15 | - default: | |
16 | - return state; | |
17 | - } | |
18 | -} | |
19 | -var storePal = (0, toolkit_1.createStore)(countterReducer); | |
20 | -function Returnstatus() { | |
21 | - return (<> | |
22 | - {storePal} | |
23 | - </>); | |
24 | -} | |
25 | -exports.default = Returnstatus; |
@@ -1,88 +0,0 @@ | ||
1 | -"use strict"; | |
2 | -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | |
3 | - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | |
4 | - return new (P || (P = Promise))(function (resolve, reject) { | |
5 | - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | |
6 | - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | |
7 | - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | |
8 | - step((generator = generator.apply(thisArg, _arguments || [])).next()); | |
9 | - }); | |
10 | -}; | |
11 | -var __generator = (this && this.__generator) || function (thisArg, body) { | |
12 | - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | |
13 | - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | |
14 | - function verb(n) { return function (v) { return step([n, v]); }; } | |
15 | - function step(op) { | |
16 | - if (f) throw new TypeError("Generator is already executing."); | |
17 | - while (g && (g = 0, op[0] && (_ = 0)), _) try { | |
18 | - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | |
19 | - if (y = 0, t) op = [op[0] & 2, t.value]; | |
20 | - switch (op[0]) { | |
21 | - case 0: case 1: t = op; break; | |
22 | - case 4: _.label++; return { value: op[1], done: false }; | |
23 | - case 5: _.label++; y = op[1]; op = [0]; continue; | |
24 | - case 7: op = _.ops.pop(); _.trys.pop(); continue; | |
25 | - default: | |
26 | - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | |
27 | - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | |
28 | - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | |
29 | - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | |
30 | - if (t[2]) _.ops.pop(); | |
31 | - _.trys.pop(); continue; | |
32 | - } | |
33 | - op = body.call(thisArg, _); | |
34 | - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | |
35 | - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | |
36 | - } | |
37 | -}; | |
38 | -Object.defineProperty(exports, "__esModule", { value: true }); | |
39 | -exports.createUserPost = void 0; | |
40 | -var pg_1 = require("pg"); | |
41 | -var pool = new pg_1.Pool({ | |
42 | - user: 'dbuser', | |
43 | - host: 'localhost', | |
44 | - database: 'mydb', | |
45 | - password: 'secretpassword', | |
46 | - port: 5432, | |
47 | -}); | |
48 | -var createUserPost = function (_a) { | |
49 | - var req = _a.req, res = _a.res; | |
50 | - return __awaiter(void 0, void 0, void 0, function () { | |
51 | - var _b, name, email, client, queryText, values, rows, e_1; | |
52 | - return __generator(this, function (_c) { | |
53 | - switch (_c.label) { | |
54 | - case 0: | |
55 | - _b = req.body, name = _b.name, email = _b.email; | |
56 | - return [4 /*yield*/, pool.connect()]; | |
57 | - case 1: | |
58 | - client = _c.sent(); | |
59 | - _c.label = 2; | |
60 | - case 2: | |
61 | - _c.trys.push([2, 6, 8, 9]); | |
62 | - return [4 /*yield*/, client.query('BEGIN')]; | |
63 | - case 3: | |
64 | - _c.sent(); | |
65 | - queryText = 'INSERT INTO users(name, email) VALUES($1, $2) RETURNING *'; | |
66 | - values = [name, email]; | |
67 | - return [4 /*yield*/, client.query(queryText, values)]; | |
68 | - case 4: | |
69 | - rows = (_c.sent()).rows; | |
70 | - return [4 /*yield*/, client.query('COMMIT')]; | |
71 | - case 5: | |
72 | - _c.sent(); | |
73 | - return [2 /*return*/, res.status(201).send(rows[0])]; | |
74 | - case 6: | |
75 | - e_1 = _c.sent(); | |
76 | - return [4 /*yield*/, client.query('ROLLBACK')]; | |
77 | - case 7: | |
78 | - _c.sent(); | |
79 | - throw e_1; | |
80 | - case 8: | |
81 | - client.release(); | |
82 | - return [7 /*endfinally*/]; | |
83 | - case 9: return [2 /*return*/]; | |
84 | - } | |
85 | - }); | |
86 | - }); | |
87 | -}; | |
88 | -exports.createUserPost = createUserPost; |
@@ -1,7 +1,7 @@ | ||
1 | 1 | /** @type {import('next').NextConfig} */ |
2 | -const nextConfig = { | |
2 | +/*const nextConfig = { | |
3 | 3 | reactStrictMode: true, |
4 | 4 | ...import(`./config/${process.env.APP_ENV || 'local'}`.json) |
5 | 5 | } |
6 | 6 | |
7 | -module.exports = nextConfig | |
7 | +module.exports = nextConfig*/ |
@@ -1,10 +1,11 @@ | ||
1 | 1 | { |
2 | 2 | "name": "v2", |
3 | - "version": "0.4.41", | |
3 | + "version": "0.4.43", | |
4 | 4 | "private": true, |
5 | 5 | "scripts": { |
6 | 6 | "dev": "tsc -p tsconfig.server.json && cross-env NODE_ENV=development node ./dist/server/server.js", |
7 | - "pre-build": "tsc -p tsconfig.server.json" | |
7 | + "pre-build": "tsc -p tsconfig.server.json", | |
8 | + "build": "(if exist dist rd dist /s /q) && webpack --mode development" | |
8 | 9 | }, |
9 | 10 | "dependencies": { |
10 | 11 | "@reduxjs/toolkit": "^1.9.3", |
@@ -26,7 +27,12 @@ | ||
26 | 27 | "devDependencies": { |
27 | 28 | "cross-env": "^7.0.3", |
28 | 29 | "express": "^4.18.2", |
29 | - "nodemon": "^2.0.21" | |
30 | + "html-loader": "^4.2.0", | |
31 | + "html-webpack-plugin": "^5.5.0", | |
32 | + "nodemon": "^2.0.21", | |
33 | + "webpack": "^5.76.3", | |
34 | + "webpack-cli": "^5.0.1", | |
35 | + "webpack-node-externals": "^3.0.0" | |
30 | 36 | }, |
31 | 37 | "main": "next.config.js", |
32 | 38 | "author": "", |
@@ -0,0 +1,38 @@ | ||
1 | +const path = require('path') | |
2 | +const webpack = require('webpack') | |
3 | +const nodeExternals = require('webpack-node-externals') | |
4 | +const HtmlWebPackPlugin = require("html-webpack-plugin") | |
5 | +module.exports = { | |
6 | + entry: { | |
7 | + server: './dist/server/server.js', | |
8 | + }, | |
9 | + output: { | |
10 | + path: path.join(__dirname, 'dist'), | |
11 | + publicPath: '/dist', | |
12 | + filename: '[name].js' | |
13 | + }, | |
14 | + target: 'node', | |
15 | + node: { | |
16 | + // Need this when working with express, otherwise the build fails | |
17 | + __dirname: false, // if you don't put this is, __dirname | |
18 | + __filename: false, // and __filename return blank or / | |
19 | + }, | |
20 | + externals: [nodeExternals()], // Need this to avoid error when working with Express | |
21 | + module: { | |
22 | + rules: [ | |
23 | + { | |
24 | + // Loads the javacript into html template provided. | |
25 | + // Entry point is set below in HtmlWebPackPlugin in Plugins | |
26 | + test: /\.html$/, | |
27 | + use: [{loader: "html-loader"}] | |
28 | + } | |
29 | + ] | |
30 | + }, | |
31 | + plugins: [ | |
32 | + new HtmlWebPackPlugin({ | |
33 | + template: "./index.html", | |
34 | + filename: "./index.html", | |
35 | + excludeChunks: [ 'server' ] | |
36 | + }) | |
37 | + ] | |
38 | +} | |
\ No newline at end of file |