diff --git a/.stylelintrc.js b/.stylelintrc.js index acff9ee..514a545 100644 --- a/.stylelintrc.js +++ b/.stylelintrc.js @@ -8,8 +8,33 @@ module.exports = { ignoreAtRules: ['tailwind', 'apply', 'variants', 'responsive', 'screen', 'layer'] } ], + // Disable @apply deprecation warning, as this is a Tailwind CSS feature + 'at-rule-no-deprecated': null, + // Allow duplicate selectors, as this is common in generated CSS 'no-descending-specificity': null, - 'selector-class-pattern': null // Allow camelCase class names + 'no-duplicate-selectors': null, + // Allow camelCase class names + 'selector-class-pattern': null, + // Allow camelCase ID selectors + 'selector-id-pattern': null, + // Allow unknown properties (Tailwind generated CSS variables) + 'property-no-unknown': null, + // Allow unknown type selectors (custom elements) + 'selector-type-no-unknown': null, + // Allow unknown declaration values + 'declaration-property-value-no-unknown': null, + // Allow duplicate custom properties + 'declaration-block-no-duplicate-custom-properties': null, + // Allow multiple declarations on single line + 'declaration-block-single-line-max-declarations': null, + // Allow decimal precision + 'number-max-precision': null, + // Allow unknown media feature values + 'media-feature-name-value-no-unknown': null, + // Allow non-kebab-case keyframe names + 'keyframes-name-pattern': null, + // Allow empty source files + 'no-empty-source': null }, ignoreFiles: [ 'node_modules/**/*', diff --git a/README.md b/README.md index 1af2be8..8809407 100644 --- a/README.md +++ b/README.md @@ -383,7 +383,7 @@ file should include a front matter section with the following format: title: CheatSheets date: 2020-11-25 18:28:43 icon: icon-style -background: bg-emerald-600 +background: bg-indigo-600 tags: categories: - Other diff --git a/package.json b/package.json index 7cdce6c..847b17f 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "hexo-browsersync": "^0.3.0", "hexo-excerpt": "^1.3.1", "hexo-filter-nofollow": "^2.0.2", + "hexo-fs": "^5.0.0", "hexo-generator-index": "^4.0.0", "hexo-generator-sitemap": "^3.0.1", "hexo-log": "^4.1.0", @@ -52,6 +53,8 @@ "hexo-renderer-markdown-it": "^5.0.0", "hexo-renderer-stylus": "^3.0.1", "hexo-server": "^3.0.0", + "hexo-util": "^3.3.0", + "highlight.js": "^11.11.1", "markdown-it-abbr": "^2.0.0", "markdown-it-anchor": "^9.2.0", "markdown-it-attrs": "^4.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9277f35..7f57be4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -47,6 +47,9 @@ importers: hexo-filter-nofollow: specifier: ^2.0.2 version: 2.0.2 + hexo-fs: + specifier: ^5.0.0 + version: 5.0.0 hexo-generator-index: specifier: ^4.0.0 version: 4.0.0 @@ -74,6 +77,12 @@ importers: hexo-server: specifier: ^3.0.0 version: 3.0.0 + hexo-util: + specifier: ^3.3.0 + version: 3.3.0 + highlight.js: + specifier: ^11.11.1 + version: 11.11.1 markdown-it-abbr: specifier: ^2.0.0 version: 2.0.0 @@ -988,6 +997,10 @@ packages: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} + chokidar@4.0.3: + resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} + engines: {node: '>= 14.16.0'} + class-utils@0.3.6: resolution: {integrity: sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==} engines: {node: '>=0.10.0'} @@ -2292,6 +2305,10 @@ packages: resolution: {integrity: sha512-Q92zQ5PlVDouvSWFLXQoFSTLIUIODikUJs2BfAXQglyOEjN1dOQn1Z5Nimk/7GHof17R5h/uObCQLnZAjzI2tg==} engines: {node: '>=14'} + hexo-fs@5.0.0: + resolution: {integrity: sha512-oBkg1QgXyb4JxipaH+yCV/7E7XOUASTK6x1pocWvLw6U2mB6VfLENgYg61ft9Qn6JCiKSzs7FU4vyTUy6gIPvQ==} + engines: {node: '>=18'} + hexo-generator-index@4.0.0: resolution: {integrity: sha512-KeM7mOCKWINGFAk1E+CkjMMgqFIv8oaRbGxR7ipkQAp44o4aopkVftma4sdIplOq9WQEWfVYDUK5gEv9J3nzUg==} engines: {node: '>=18'} @@ -4142,6 +4159,10 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} + readdirp@4.1.2: + resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==} + engines: {node: '>= 14.18.0'} + rechoir@0.8.0: resolution: {integrity: sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==} engines: {node: '>= 10.13.0'} @@ -6032,6 +6053,10 @@ snapshots: optionalDependencies: fsevents: 2.3.3 + chokidar@4.0.3: + dependencies: + readdirp: 4.1.2 + class-utils@0.3.6: dependencies: arr-union: 3.1.0 @@ -7547,6 +7572,13 @@ snapshots: graceful-fs: 4.2.11 hexo-util: 3.3.0 + hexo-fs@5.0.0: + dependencies: + bluebird: 3.7.2 + chokidar: 4.0.3 + graceful-fs: 4.2.11 + hexo-util: 3.3.0 + hexo-generator-index@4.0.0: dependencies: hexo-pagination: 3.0.0 @@ -9410,6 +9442,8 @@ snapshots: dependencies: picomatch: 2.3.1 + readdirp@4.1.2: {} + rechoir@0.8.0: dependencies: resolve: 1.22.10 diff --git a/source/_posts/aspect-ratio.md b/source/_posts/aspect-ratio.md index d6114df..fa2e323 100644 --- a/source/_posts/aspect-ratio.md +++ b/source/_posts/aspect-ratio.md @@ -1,7 +1,7 @@ --- title: Aspect Ratio date: 2022-09-21 10:28:43 -background: bg-emerald-600 +background: bg-indigo-600 tags: - photo - image diff --git a/source/_posts/chmod.md b/source/_posts/chmod.md index ded1f48..0917565 100644 --- a/source/_posts/chmod.md +++ b/source/_posts/chmod.md @@ -1,7 +1,7 @@ --- title: Chmod date: 2021-07-01 10:51:44 -background: bg-emerald-600 +background: bg-indigo-600 tags: - permission categories: diff --git a/source/_posts/fastapi.md b/source/_posts/fastapi.md index 832b0ab..f9ce713 100644 --- a/source/_posts/fastapi.md +++ b/source/_posts/fastapi.md @@ -1,7 +1,7 @@ --- title: FastAPI date: 2025-06-07 18:40:00 -background: bg-[#059669] +background: bg-[#3730a3] tags: - web - python diff --git a/source/_posts/grep.md b/source/_posts/grep.md index 3cad8f7..da43000 100644 --- a/source/_posts/grep.md +++ b/source/_posts/grep.md @@ -1,7 +1,7 @@ --- title: Grep date: 2020-11-25 18:28:43 -background: bg-emerald-400 +background: bg-indigo-400 tags: - egrep - search diff --git a/source/_posts/openssl.md b/source/_posts/openssl.md index 01632c8..be590d7 100644 --- a/source/_posts/openssl.md +++ b/source/_posts/openssl.md @@ -2,7 +2,7 @@ title: OpenSSL date: 2020-11-25 18:28:43 icon: icon-style -background: bg-emerald-600 +background: bg-indigo-600 tags: categories: - Linux Command diff --git a/source/_posts/phpstorm.md b/source/_posts/phpstorm.md index 32db796..8f555d3 100644 --- a/source/_posts/phpstorm.md +++ b/source/_posts/phpstorm.md @@ -1,7 +1,7 @@ --- title: PhpStorm date: 2022-11-23 16:23:31.703719 -background: bg-gradient-to-r from-[#be4fe9] to-[#715bef] hover:from-emerald-400 hover:to-blue-500 +background: bg-gradient-to-r from-[#be4fe9] to-[#715bef] hover:from-indigo-400 hover:to-blue-500 label: tags: - jetbrains diff --git a/source/_posts/screen.md b/source/_posts/screen.md index ac83ba6..e7f2e86 100644 --- a/source/_posts/screen.md +++ b/source/_posts/screen.md @@ -1,7 +1,7 @@ --- title: Screen date: 2021-01-02 20:03:55 -background: bg-emerald-500 +background: bg-indigo-500 tags: - terminal - session diff --git a/source/_posts/tmux.md b/source/_posts/tmux.md index cae3ae6..eebdbd7 100644 --- a/source/_posts/tmux.md +++ b/source/_posts/tmux.md @@ -1,7 +1,7 @@ --- title: Tmux date: 2021-02-20 14:31:24 -background: bg-emerald-600 +background: bg-indigo-600 tags: - utility - terminal diff --git a/source/_posts/webstorm.md b/source/_posts/webstorm.md index 9301e8d..cbc7b34 100644 --- a/source/_posts/webstorm.md +++ b/source/_posts/webstorm.md @@ -1,7 +1,7 @@ --- title: WebStorm date: 2020-12-17 21:51:44 -background: bg-gradient-to-r from-emerald-300 to-blue-400 hover:from-emerald-400 hover:to-blue-500 +background: bg-gradient-to-r from-indigo-300 to-blue-400 hover:from-indigo-400 hover:to-blue-500 tags: - jetbrains - web diff --git a/source/assets/icon/chevron-down.svg b/source/assets/icon/chevron-down.svg new file mode 100644 index 0000000..2564d78 --- /dev/null +++ b/source/assets/icon/chevron-down.svg @@ -0,0 +1,3 @@ + diff --git a/source/assets/icon/coffee.svg b/source/assets/icon/coffee.svg new file mode 100644 index 0000000..a11de54 --- /dev/null +++ b/source/assets/icon/coffee.svg @@ -0,0 +1,5 @@ + diff --git a/source/assets/icon/copy.svg b/source/assets/icon/copy.svg new file mode 100644 index 0000000..a5bcecd --- /dev/null +++ b/source/assets/icon/copy.svg @@ -0,0 +1,3 @@ + diff --git a/source/assets/icon/dorefer.png b/source/assets/icon/dorefer.png new file mode 100644 index 0000000..469ca78 Binary files /dev/null and b/source/assets/icon/dorefer.png differ diff --git a/source/assets/icon/fionaai.png b/source/assets/icon/fionaai.png new file mode 100644 index 0000000..bdeda79 Binary files /dev/null and b/source/assets/icon/fionaai.png differ diff --git a/source/assets/icon/paypal.svg b/source/assets/icon/paypal.svg new file mode 100644 index 0000000..49700ef --- /dev/null +++ b/source/assets/icon/paypal.svg @@ -0,0 +1,3 @@ + diff --git a/source/assets/icon/tableconvert.png b/source/assets/icon/tableconvert.png new file mode 100644 index 0000000..78901f5 Binary files /dev/null and b/source/assets/icon/tableconvert.png differ diff --git a/source/assets/icon/x.svg b/source/assets/icon/x.svg new file mode 100644 index 0000000..2c410c9 --- /dev/null +++ b/source/assets/icon/x.svg @@ -0,0 +1,3 @@ + diff --git a/source/manifest.json b/source/manifest.json index 7709856..228abe2 100644 --- a/source/manifest.json +++ b/source/manifest.json @@ -5,7 +5,7 @@ "start_url": "/", "display": "standalone", "background_color": "#ffffff", - "theme_color": "#10b981", + "theme_color": "#6366f1", "orientation": "portrait-primary", "scope": "/", "lang": "en", diff --git a/source/support/index.md b/source/support/index.md new file mode 100644 index 0000000..2285304 --- /dev/null +++ b/source/support/index.md @@ -0,0 +1,56 @@ +--- +title: Buy Me a Coffee +description: Support the development of CheatSheets.zip through various donation platforms +permalink: /support/ +background: bg-gradient-to-r from-pink-500 to-purple-600 +tags: + - support + - donation +categories: + - Other +intro: | + Thank you for considering supporting CheatSheets.zip! Your contributions help us maintain and improve this free resource for developers worldwide. +--- + +## Buy Me a Coffee + +### π Why Support Us? + +CheatSheets.zip serves **1M+ developers** monthly with **200+ free cheat sheets**. + +We believe great developer resources should be **free forever**. Your support helps us: + +- π Keep servers running smoothly +- β¨ Add new cheat sheets weekly +- π― Improve user experience +- π₯ Maintain top-quality content + +_No ads, no paywalls, just pure developer goodness._ + +### β Buy Me a Coffee + +**Fuel our coding sessions!** + +Buy us a coffee and help keep the cheat sheets coming. Perfect for one-time support or when you just want to say thanks. + +β **What your coffee buys:** + +- Server uptime for thousands of developers +- Motivation to create new content +- A smile on our faces + +[Buy Me a Coffee](https://buymeacoffee.com/cheatsheets.zip) {.link-arrow} + +### π GitHub Sponsors + +**Join our amazing sponsors!** + +Support the future of free developer resources. Every contribution, big or small, makes a real difference. + +β¨ **Sponsor perks:** + +- Your name in our README +- Early access to new features +- Good karma for supporting open source + +[Sponsor on GitHub](https://github.com/sponsors/Fechin) {.link-arrow} diff --git a/source/sw.js b/source/sw.js index e85bbfe..328b56d 100644 --- a/source/sw.js +++ b/source/sw.js @@ -174,14 +174,14 @@ function createOfflineResponse(pathname) { .offline-title { font-size: 1.5rem; margin-bottom: 1rem; - color: #10b981; + color: #6366f1; } .offline-message { margin-bottom: 1.5rem; line-height: 1.6; } .retry-button { - background: #10b981; + background: #6366f1; color: white; border: none; padding: 0.75rem 1.5rem; @@ -190,7 +190,7 @@ function createOfflineResponse(pathname) { font-size: 1rem; } .retry-button:hover { - background: #059669; + background: #3730a3; } diff --git a/source/widget/chmod.html b/source/widget/chmod.html index 2987f01..ce24a43 100644 --- a/source/widget/chmod.html +++ b/source/widget/chmod.html @@ -4,7 +4,7 @@