From ce0adbe7a4f1bee7e2d175e5fb8bf0724678fc01 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sun, 14 May 2023 22:05:50 +0300 Subject: [PATCH 1/5] Update old tag collection slugs --- collections/css/animation.yaml | 2 +- collections/css/interactivity.yaml | 2 +- collections/css/layout.yaml | 2 +- collections/css/visual.yaml | 2 +- collections/git/branch.yaml | 2 +- collections/git/commit.yaml | 2 +- collections/git/configuration.yaml | 2 +- collections/git/repository.yaml | 2 +- collections/js/algorithm.yaml | 2 +- collections/js/array.yaml | 2 +- collections/js/browser.yaml | 2 +- collections/js/date.yaml | 2 +- collections/js/function.yaml | 2 +- collections/js/math.yaml | 2 +- collections/js/node.yaml | 2 +- collections/js/object.yaml | 2 +- collections/js/string.yaml | 2 +- collections/js/type.yaml | 2 +- collections/python/date.yaml | 2 +- collections/python/dictionary.yaml | 2 +- collections/python/function.yaml | 2 +- collections/python/list.yaml | 2 +- collections/python/math.yaml | 2 +- collections/python/string.yaml | 2 +- collections/react/components.yaml | 2 +- collections/react/hooks.yaml | 2 +- hub.yaml | 8 ++++---- 27 files changed, 30 insertions(+), 30 deletions(-) diff --git a/collections/css/animation.yaml b/collections/css/animation.yaml index e79c0e3e4..eb7ec1dc7 100644 --- a/collections/css/animation.yaml +++ b/collections/css/animation.yaml @@ -1,4 +1,4 @@ -slug: css/t/animation +slug: css/animation name: CSS Animations featured: true miniName: Animation diff --git a/collections/css/interactivity.yaml b/collections/css/interactivity.yaml index 67cc1c574..344701b74 100644 --- a/collections/css/interactivity.yaml +++ b/collections/css/interactivity.yaml @@ -1,4 +1,4 @@ -slug: css/t/interactivity +slug: css/interactivity name: CSS Interactivity Snippets shortName: CSS Interactivity miniName: Interactivity diff --git a/collections/css/layout.yaml b/collections/css/layout.yaml index 35519eff6..e1617db79 100644 --- a/collections/css/layout.yaml +++ b/collections/css/layout.yaml @@ -1,4 +1,4 @@ -slug: css/t/layout +slug: css/layout name: CSS Layouts miniName: Layout featured: true diff --git a/collections/css/visual.yaml b/collections/css/visual.yaml index d4b9e0e3e..29fee2a05 100644 --- a/collections/css/visual.yaml +++ b/collections/css/visual.yaml @@ -1,4 +1,4 @@ -slug: css/t/visual +slug: css/visual name: CSS Visual Snippets shortName: CSS Visual miniName: Visual diff --git a/collections/git/branch.yaml b/collections/git/branch.yaml index caf49bb56..32b90ea83 100644 --- a/collections/git/branch.yaml +++ b/collections/git/branch.yaml @@ -1,4 +1,4 @@ -slug: git/t/branch +slug: git/branch name: Git Branch Snippets shortName: Git Branches miniName: Branch diff --git a/collections/git/commit.yaml b/collections/git/commit.yaml index 3195ae3a9..9e86edb7c 100644 --- a/collections/git/commit.yaml +++ b/collections/git/commit.yaml @@ -1,4 +1,4 @@ -slug: git/t/commit +slug: git/commit name: Git Commit Snippets shortName: Git Commits miniName: Commit diff --git a/collections/git/configuration.yaml b/collections/git/configuration.yaml index 3cd30e9e5..0a119a7ce 100644 --- a/collections/git/configuration.yaml +++ b/collections/git/configuration.yaml @@ -1,4 +1,4 @@ -slug: git/t/configuration +slug: git/configuration name: Git Configuration Snippets shortName: Git Configuration miniName: Configuration diff --git a/collections/git/repository.yaml b/collections/git/repository.yaml index e59dd8209..28188b3ed 100644 --- a/collections/git/repository.yaml +++ b/collections/git/repository.yaml @@ -1,4 +1,4 @@ -slug: git/t/repository +slug: git/repository name: Git Repository Snippets shortName: Git Repositories miniName: Repository diff --git a/collections/js/algorithm.yaml b/collections/js/algorithm.yaml index 4efe8312b..e03f3a96f 100644 --- a/collections/js/algorithm.yaml +++ b/collections/js/algorithm.yaml @@ -1,4 +1,4 @@ -slug: js/t/algorithm +slug: js/algorithm name: JavaScript Algorithms miniName: Algorithms featured: true diff --git a/collections/js/array.yaml b/collections/js/array.yaml index 014c1a822..ddd9907a0 100644 --- a/collections/js/array.yaml +++ b/collections/js/array.yaml @@ -1,4 +1,4 @@ -slug: js/t/array +slug: js/array name: JavaScript Array Snippets shortName: JavaScript Arrays miniName: Array diff --git a/collections/js/browser.yaml b/collections/js/browser.yaml index e4710a52e..511ad5a19 100644 --- a/collections/js/browser.yaml +++ b/collections/js/browser.yaml @@ -1,4 +1,4 @@ -slug: js/t/browser +slug: js/browser name: JavaScript Browser Snippets shortName: JavaScript Browser miniName: Browser diff --git a/collections/js/date.yaml b/collections/js/date.yaml index 157ad6ced..bfa232807 100644 --- a/collections/js/date.yaml +++ b/collections/js/date.yaml @@ -1,4 +1,4 @@ -slug: js/t/date +slug: js/date name: JavaScript Date Snippets shortName: JavaScript Dates miniName: Date diff --git a/collections/js/function.yaml b/collections/js/function.yaml index d348a07b7..aaf0b5ce4 100644 --- a/collections/js/function.yaml +++ b/collections/js/function.yaml @@ -1,4 +1,4 @@ -slug: js/t/function +slug: js/function name: JavaScript Function Snippets miniName: Function featured: true diff --git a/collections/js/math.yaml b/collections/js/math.yaml index c6f99e3bd..01928290a 100644 --- a/collections/js/math.yaml +++ b/collections/js/math.yaml @@ -1,4 +1,4 @@ -slug: js/t/math +slug: js/math name: JavaScript Math Snippets shortName: JavaScript Math miniName: Math diff --git a/collections/js/node.yaml b/collections/js/node.yaml index 2033886cd..c88d2b3b1 100644 --- a/collections/js/node.yaml +++ b/collections/js/node.yaml @@ -1,4 +1,4 @@ -slug: js/t/node +slug: js/node name: Node.js Snippets shortName: Node.js miniName: Node diff --git a/collections/js/object.yaml b/collections/js/object.yaml index 55d56754c..105e4b6cd 100644 --- a/collections/js/object.yaml +++ b/collections/js/object.yaml @@ -1,4 +1,4 @@ -slug: js/t/object +slug: js/object name: JavaScript Object Snippets shortName: JavaScript Objects miniName: Object diff --git a/collections/js/string.yaml b/collections/js/string.yaml index 5a6b9de5a..dba78f2d9 100644 --- a/collections/js/string.yaml +++ b/collections/js/string.yaml @@ -1,4 +1,4 @@ -slug: js/t/string +slug: js/string name: JavaScript String Snippets miniName: String featured: true diff --git a/collections/js/type.yaml b/collections/js/type.yaml index 661e5b6db..407589f3f 100644 --- a/collections/js/type.yaml +++ b/collections/js/type.yaml @@ -1,4 +1,4 @@ -slug: js/t/type +slug: js/type name: JavaScript Type Snippets shortName: JavaScript Types miniName: Type diff --git a/collections/python/date.yaml b/collections/python/date.yaml index cb124ee3c..4d9a6ad00 100644 --- a/collections/python/date.yaml +++ b/collections/python/date.yaml @@ -1,4 +1,4 @@ -slug: python/t/date +slug: python/date name: Python Date Snippets shortName: Python Dates miniName: Date diff --git a/collections/python/dictionary.yaml b/collections/python/dictionary.yaml index 27fc96135..3ddc12c30 100644 --- a/collections/python/dictionary.yaml +++ b/collections/python/dictionary.yaml @@ -1,4 +1,4 @@ -slug: python/t/dictionary +slug: python/dictionary name: Python Dictionary Snippets shortName: Python Dictionaries miniName: Dictionary diff --git a/collections/python/function.yaml b/collections/python/function.yaml index e4d98dfa4..0be1f960e 100644 --- a/collections/python/function.yaml +++ b/collections/python/function.yaml @@ -1,4 +1,4 @@ -slug: python/t/function +slug: python/function name: Python Function Snippets shortName: Python Functions miniName: Function diff --git a/collections/python/list.yaml b/collections/python/list.yaml index 0abadd6dd..b29126a1c 100644 --- a/collections/python/list.yaml +++ b/collections/python/list.yaml @@ -1,4 +1,4 @@ -slug: python/t/list +slug: python/list name: Python List Snippets shortName: Python Lists miniName: List diff --git a/collections/python/math.yaml b/collections/python/math.yaml index b8eae4274..2714f9326 100644 --- a/collections/python/math.yaml +++ b/collections/python/math.yaml @@ -1,4 +1,4 @@ -slug: python/t/math +slug: python/math name: Python Math Snippets shortName: Python Math miniName: Math diff --git a/collections/python/string.yaml b/collections/python/string.yaml index b38f56d42..d5963b9b2 100644 --- a/collections/python/string.yaml +++ b/collections/python/string.yaml @@ -1,4 +1,4 @@ -slug: python/t/string +slug: python/string name: Python String Snippets shortName: Python Strings miniName: String diff --git a/collections/react/components.yaml b/collections/react/components.yaml index 4edeb2c39..7a74808a0 100644 --- a/collections/react/components.yaml +++ b/collections/react/components.yaml @@ -1,4 +1,4 @@ -slug: react/t/components +slug: react/components name: React Components miniName: Components featured: true diff --git a/collections/react/hooks.yaml b/collections/react/hooks.yaml index 594f34282..0bd8202ff 100644 --- a/collections/react/hooks.yaml +++ b/collections/react/hooks.yaml @@ -1,4 +1,4 @@ -slug: react/t/hooks +slug: react/hooks name: React Hooks miniName: Hooks featured: true diff --git a/hub.yaml b/hub.yaml index 8d7b40415..cbb5a8e02 100644 --- a/hub.yaml +++ b/hub.yaml @@ -11,12 +11,12 @@ shortDescription: >- featuredListings: - js - css -- react/t/hooks -- js/t/algorithm +- react/hooks +- js/algorithm - git - c/js-interviews - python -- js/t/node +- js/node - c/js-data-structures - c/js-promises - c/js-comparison @@ -49,7 +49,7 @@ featuredListings: - c/js-array-initialization - c/css-background-patterns - c/js-object-cloning -- react/t/components +- react/components - c/js-http-requests - c/web-development - c/js-object-key-selection From 3bba64656c616bbd957bfda404cdf3f11fab0a2f Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sun, 14 May 2023 22:09:51 +0300 Subject: [PATCH 2/5] Reslug independent collections --- collections/cheatsheets.yaml | 2 +- collections/tips.yaml | 2 +- collections/webdev.yaml | 2 +- hub.yaml | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/collections/cheatsheets.yaml b/collections/cheatsheets.yaml index e10172eb2..3942615b5 100644 --- a/collections/cheatsheets.yaml +++ b/collections/cheatsheets.yaml @@ -1,4 +1,4 @@ -slug: c/cheatsheets +slug: cheatsheets name: Cheatsheets featured: true typeMatcher: cheatsheet diff --git a/collections/tips.yaml b/collections/tips.yaml index 6d80a1bd6..a9f163751 100644 --- a/collections/tips.yaml +++ b/collections/tips.yaml @@ -1,4 +1,4 @@ -slug: c/tips +slug: tips name: Tips & Tricks featured: true typeMatcher: tip diff --git a/collections/webdev.yaml b/collections/webdev.yaml index 2b549b363..b28230821 100644 --- a/collections/webdev.yaml +++ b/collections/webdev.yaml @@ -1,4 +1,4 @@ -slug: c/web-development +slug: web-development name: Web development Snippets shortName: Web development typeMatcher: article diff --git a/hub.yaml b/hub.yaml index cbb5a8e02..79c7f531f 100644 --- a/hub.yaml +++ b/hub.yaml @@ -30,7 +30,7 @@ featuredListings: - c/js-event-handling - c/js-arrow-functions - c/js-performance -- c/tips +- tips - c/react-rendering - c/js-colors - c/js-browser-capabilities @@ -51,6 +51,6 @@ featuredListings: - c/js-object-cloning - react/components - c/js-http-requests -- c/web-development +- web-development - c/js-object-key-selection -- c/cheatsheets +- cheatsheets From e3159429e5297eebf4fa00fb233c93030fc07171 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sun, 14 May 2023 22:13:15 +0300 Subject: [PATCH 3/5] Update CSS collections --- .../background-patterns.yaml} | 2 +- .../button-transitions.yaml} | 2 +- collections/{css-centering.yaml => css/centering.yaml} | 2 +- .../{css-hover-effects.yaml => css/hover-effects.yaml} | 2 +- hub.yaml | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) rename collections/{css-background-patterns.yaml => css/background-patterns.yaml} (93%) rename collections/{css-button-transitions.yaml => css/button-transitions.yaml} (94%) rename collections/{css-centering.yaml => css/centering.yaml} (95%) rename collections/{css-hover-effects.yaml => css/hover-effects.yaml} (96%) diff --git a/collections/css-background-patterns.yaml b/collections/css/background-patterns.yaml similarity index 93% rename from collections/css-background-patterns.yaml rename to collections/css/background-patterns.yaml index 26f04e8cf..0035c1ad8 100644 --- a/collections/css-background-patterns.yaml +++ b/collections/css/background-patterns.yaml @@ -1,4 +1,4 @@ -slug: c/css-background-patterns +slug: css/background-patterns name: CSS Background Patterns featured: true snippetIds: diff --git a/collections/css-button-transitions.yaml b/collections/css/button-transitions.yaml similarity index 94% rename from collections/css-button-transitions.yaml rename to collections/css/button-transitions.yaml index d4b584539..a58778207 100644 --- a/collections/css-button-transitions.yaml +++ b/collections/css/button-transitions.yaml @@ -1,4 +1,4 @@ -slug: c/css-button-transitions +slug: css/button-transitions name: CSS Button Transitions featured: true snippetIds: diff --git a/collections/css-centering.yaml b/collections/css/centering.yaml similarity index 95% rename from collections/css-centering.yaml rename to collections/css/centering.yaml index 135a49825..7d9e3cca6 100644 --- a/collections/css-centering.yaml +++ b/collections/css/centering.yaml @@ -1,4 +1,4 @@ -slug: c/css-centering +slug: css/centering name: CSS Centering featured: true snippetIds: diff --git a/collections/css-hover-effects.yaml b/collections/css/hover-effects.yaml similarity index 96% rename from collections/css-hover-effects.yaml rename to collections/css/hover-effects.yaml index cdf826310..a2d6942c7 100644 --- a/collections/css-hover-effects.yaml +++ b/collections/css/hover-effects.yaml @@ -1,4 +1,4 @@ -slug: c/css-hover-effects +slug: css/hover-effects name: CSS Hover Effects featured: true snippetIds: diff --git a/hub.yaml b/hub.yaml index 79c7f531f..b0b5ec816 100644 --- a/hub.yaml +++ b/hub.yaml @@ -21,7 +21,7 @@ featuredListings: - c/js-promises - c/js-comparison - c/html-head-basics -- c/css-centering +- css/centering - c/js-css-manipulation - c/js-url - c/js-proxy @@ -38,16 +38,16 @@ featuredListings: - c/js-array-tricks - c/js-object-key-transformations - c/react-testing -- c/css-hover-effects +- css/hover-effects - c/js-string-casing - c/js-generators - c/js-array-set-operations -- c/css-button-transitions +- css/button-transitions - c/js-random-value-generators - c/js-web-storage-essentials - c/js-scroll - c/js-array-initialization -- c/css-background-patterns +- css/background-patterns - c/js-object-cloning - react/components - c/js-http-requests From 2ddf829f35894fd41155a3c09ff8841c9bd88fe1 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sun, 14 May 2023 22:36:21 +0300 Subject: [PATCH 4/5] Update JS collections --- .../array-initialization.yaml} | 2 +- .../array-methods.yaml} | 2 +- .../array-set-operations.yaml} | 2 +- .../array-tricks.yaml} | 2 +- .../arrow-functions.yaml} | 2 +- .../browser-capabilities.yaml} | 2 +- .../{js-colors.yaml => js/colors.yaml} | 2 +- .../comparison.yaml} | 2 +- .../css-manipulation.yaml} | 2 +- .../data-structures.yaml} | 2 +- .../dom-manipulation.yaml} | 2 +- .../dom-querying.yaml} | 2 +- .../event-handling.yaml} | 2 +- .../generators.yaml} | 2 +- .../{js-geometry.yaml => js/geometry.yaml} | 2 +- .../http-requests.yaml} | 2 +- .../interviews.yaml} | 2 +- .../logical-operations.yaml} | 2 +- .../object-cloning.yaml} | 2 +- .../object-key-selection.yaml} | 2 +- .../object-key-transformations.yaml} | 2 +- .../performance.yaml} | 2 +- .../{js-promises.yaml => js/promises.yaml} | 2 +- collections/{js-proxy.yaml => js/proxy.yaml} | 2 +- .../random-value-generators.yaml} | 2 +- .../{js-scroll.yaml => js/scroll.yaml} | 2 +- .../string-casing.yaml} | 2 +- .../unit-conversions.yaml} | 2 +- collections/{js-url.yaml => js/url.yaml} | 2 +- .../web-storage-essentials.yaml} | 2 +- hub.yaml | 54 +++++++++---------- .../articles/s/js-array-initialization.md | 2 +- 32 files changed, 58 insertions(+), 58 deletions(-) rename collections/{js-array-initialization.yaml => js/array-initialization.yaml} (95%) rename collections/{js-array-methods.yaml => js/array-methods.yaml} (97%) rename collections/{js-array-set-operations.yaml => js/array-set-operations.yaml} (95%) rename collections/{js-array-tricks.yaml => js/array-tricks.yaml} (96%) rename collections/{js-arrow-functions.yaml => js/arrow-functions.yaml} (96%) rename collections/{js-browser-capabilities.yaml => js/browser-capabilities.yaml} (95%) rename collections/{js-colors.yaml => js/colors.yaml} (97%) rename collections/{js-comparison.yaml => js/comparison.yaml} (97%) rename collections/{js-css-manipulation.yaml => js/css-manipulation.yaml} (95%) rename collections/{js-data-structures.yaml => js/data-structures.yaml} (97%) rename collections/{js-dom-manipulation.yaml => js/dom-manipulation.yaml} (95%) rename collections/{js-dom-querying.yaml => js/dom-querying.yaml} (97%) rename collections/{js-event-handling.yaml => js/event-handling.yaml} (97%) rename collections/{js-generators.yaml => js/generators.yaml} (97%) rename collections/{js-geometry.yaml => js/geometry.yaml} (96%) rename collections/{js-http-requests.yaml => js/http-requests.yaml} (95%) rename collections/{js-interviews.yaml => js/interviews.yaml} (98%) rename collections/{js-logical-operations.yaml => js/logical-operations.yaml} (94%) rename collections/{js-object-cloning.yaml => js/object-cloning.yaml} (94%) rename collections/{js-object-key-selection.yaml => js/object-key-selection.yaml} (94%) rename collections/{js-object-key-transformations.yaml => js/object-key-transformations.yaml} (93%) rename collections/{js-performance.yaml => js/performance.yaml} (97%) rename collections/{js-promises.yaml => js/promises.yaml} (97%) rename collections/{js-proxy.yaml => js/proxy.yaml} (98%) rename collections/{js-random-value-generators.yaml => js/random-value-generators.yaml} (95%) rename collections/{js-scroll.yaml => js/scroll.yaml} (96%) rename collections/{js-string-casing.yaml => js/string-casing.yaml} (96%) rename collections/{js-unit-conversions.yaml => js/unit-conversions.yaml} (95%) rename collections/{js-url.yaml => js/url.yaml} (98%) rename collections/{js-web-storage-essentials.yaml => js/web-storage-essentials.yaml} (94%) diff --git a/collections/js-array-initialization.yaml b/collections/js/array-initialization.yaml similarity index 95% rename from collections/js-array-initialization.yaml rename to collections/js/array-initialization.yaml index 53ccd88ee..ce70236c7 100644 --- a/collections/js-array-initialization.yaml +++ b/collections/js/array-initialization.yaml @@ -1,4 +1,4 @@ -slug: c/js-array-initialization +slug: js/array-initialization name: JavaScript Array Initialization featured: true snippetIds: diff --git a/collections/js-array-methods.yaml b/collections/js/array-methods.yaml similarity index 97% rename from collections/js-array-methods.yaml rename to collections/js/array-methods.yaml index 4fc2c3e93..11584a557 100644 --- a/collections/js-array-methods.yaml +++ b/collections/js/array-methods.yaml @@ -1,4 +1,4 @@ -slug: c/js-array-methods +slug: js/array-methods name: JavaScript Array Methods featured: true snippetIds: diff --git a/collections/js-array-set-operations.yaml b/collections/js/array-set-operations.yaml similarity index 95% rename from collections/js-array-set-operations.yaml rename to collections/js/array-set-operations.yaml index f63fd0993..3964bfd03 100644 --- a/collections/js-array-set-operations.yaml +++ b/collections/js/array-set-operations.yaml @@ -1,4 +1,4 @@ -slug: c/js-array-set-operations +slug: js/array-set-operations name: JavaScript Array Set Operations featured: true snippetIds: diff --git a/collections/js-array-tricks.yaml b/collections/js/array-tricks.yaml similarity index 96% rename from collections/js-array-tricks.yaml rename to collections/js/array-tricks.yaml index 33a337247..6aa1c232e 100644 --- a/collections/js-array-tricks.yaml +++ b/collections/js/array-tricks.yaml @@ -1,4 +1,4 @@ -slug: c/js-array-tricks +slug: js/array-tricks name: JavaScript Array Tricks featured: true snippetIds: diff --git a/collections/js-arrow-functions.yaml b/collections/js/arrow-functions.yaml similarity index 96% rename from collections/js-arrow-functions.yaml rename to collections/js/arrow-functions.yaml index d34180ae4..a85355dd7 100644 --- a/collections/js-arrow-functions.yaml +++ b/collections/js/arrow-functions.yaml @@ -1,4 +1,4 @@ -slug: c/js-arrow-functions +slug: js/arrow-functions name: JavaScript Arrow Functions featured: true snippetIds: diff --git a/collections/js-browser-capabilities.yaml b/collections/js/browser-capabilities.yaml similarity index 95% rename from collections/js-browser-capabilities.yaml rename to collections/js/browser-capabilities.yaml index ff1fb4681..c6beac606 100644 --- a/collections/js-browser-capabilities.yaml +++ b/collections/js/browser-capabilities.yaml @@ -1,4 +1,4 @@ -slug: c/js-browser-capabilities +slug: js/browser-capabilities name: Browser Capability Detection featured: true snippetIds: diff --git a/collections/js-colors.yaml b/collections/js/colors.yaml similarity index 97% rename from collections/js-colors.yaml rename to collections/js/colors.yaml index 86036abb3..e541fa97e 100644 --- a/collections/js-colors.yaml +++ b/collections/js/colors.yaml @@ -1,4 +1,4 @@ -slug: c/js-colors +slug: js/colors name: Colors in JavaScript featured: true snippetIds: diff --git a/collections/js-comparison.yaml b/collections/js/comparison.yaml similarity index 97% rename from collections/js-comparison.yaml rename to collections/js/comparison.yaml index ad93e68cf..2cf8e48f0 100644 --- a/collections/js-comparison.yaml +++ b/collections/js/comparison.yaml @@ -1,4 +1,4 @@ -slug: c/js-comparison +slug: js/comparison name: JavaScript Comparison featured: true snippetIds: diff --git a/collections/js-css-manipulation.yaml b/collections/js/css-manipulation.yaml similarity index 95% rename from collections/js-css-manipulation.yaml rename to collections/js/css-manipulation.yaml index 36ac6b4af..3d0fa7535 100644 --- a/collections/js-css-manipulation.yaml +++ b/collections/js/css-manipulation.yaml @@ -1,4 +1,4 @@ -slug: c/js-css-manipulation +slug: js/css-manipulation name: CSS Manipulation with JavaScript featured: true snippetIds: diff --git a/collections/js-data-structures.yaml b/collections/js/data-structures.yaml similarity index 97% rename from collections/js-data-structures.yaml rename to collections/js/data-structures.yaml index 012e2098d..06a67cceb 100644 --- a/collections/js-data-structures.yaml +++ b/collections/js/data-structures.yaml @@ -1,4 +1,4 @@ -slug: c/js-data-structures +slug: js/data-structures name: JavaScript Data Structures miniName: Data Structures parent: js diff --git a/collections/js-dom-manipulation.yaml b/collections/js/dom-manipulation.yaml similarity index 95% rename from collections/js-dom-manipulation.yaml rename to collections/js/dom-manipulation.yaml index 143023104..0839aa43b 100644 --- a/collections/js-dom-manipulation.yaml +++ b/collections/js/dom-manipulation.yaml @@ -1,4 +1,4 @@ -slug: c/js-dom-manipulation +slug: js/dom-manipulation name: JavaScript DOM Manipulation featured: true snippetIds: diff --git a/collections/js-dom-querying.yaml b/collections/js/dom-querying.yaml similarity index 97% rename from collections/js-dom-querying.yaml rename to collections/js/dom-querying.yaml index c4860c58d..ac17ac732 100644 --- a/collections/js-dom-querying.yaml +++ b/collections/js/dom-querying.yaml @@ -1,4 +1,4 @@ -slug: c/js-dom-querying +slug: js/dom-querying name: JavaScript DOM Querying featured: true snippetIds: diff --git a/collections/js-event-handling.yaml b/collections/js/event-handling.yaml similarity index 97% rename from collections/js-event-handling.yaml rename to collections/js/event-handling.yaml index 24b4540d8..b1d7fa8fd 100644 --- a/collections/js-event-handling.yaml +++ b/collections/js/event-handling.yaml @@ -1,4 +1,4 @@ -slug: c/js-event-handling +slug: js/event-handling name: JavaScript Event Handling featured: true snippetIds: diff --git a/collections/js-generators.yaml b/collections/js/generators.yaml similarity index 97% rename from collections/js-generators.yaml rename to collections/js/generators.yaml index e0514b8ce..476043c9b 100644 --- a/collections/js-generators.yaml +++ b/collections/js/generators.yaml @@ -1,4 +1,4 @@ -slug: c/js-generators +slug: js/generators name: JavaScript Generator Functions featured: true snippetIds: diff --git a/collections/js-geometry.yaml b/collections/js/geometry.yaml similarity index 96% rename from collections/js-geometry.yaml rename to collections/js/geometry.yaml index 0fa71e375..2e3721bcd 100644 --- a/collections/js-geometry.yaml +++ b/collections/js/geometry.yaml @@ -1,4 +1,4 @@ -slug: c/js-geometry +slug: js/geometry name: JavaScript Geometric Operations featured: true snippetIds: diff --git a/collections/js-http-requests.yaml b/collections/js/http-requests.yaml similarity index 95% rename from collections/js-http-requests.yaml rename to collections/js/http-requests.yaml index 68aa39862..a3ebe3632 100644 --- a/collections/js-http-requests.yaml +++ b/collections/js/http-requests.yaml @@ -1,4 +1,4 @@ -slug: c/js-http-requests +slug: js/http-requests name: HTTP Requests in JavaScript featured: true snippetIds: diff --git a/collections/js-interviews.yaml b/collections/js/interviews.yaml similarity index 98% rename from collections/js-interviews.yaml rename to collections/js/interviews.yaml index 463a2a04e..f051ee366 100644 --- a/collections/js-interviews.yaml +++ b/collections/js/interviews.yaml @@ -1,4 +1,4 @@ -slug: c/js-interviews +slug: js/interviews name: JavaScript Interview Questions miniName: Interview Questions featured: true diff --git a/collections/js-logical-operations.yaml b/collections/js/logical-operations.yaml similarity index 94% rename from collections/js-logical-operations.yaml rename to collections/js/logical-operations.yaml index ae2c4b2b7..299fec6d3 100644 --- a/collections/js-logical-operations.yaml +++ b/collections/js/logical-operations.yaml @@ -1,4 +1,4 @@ -slug: c/js-logical-operations +slug: js/logical-operations name: JavaScript Logical Operations featured: true snippetIds: diff --git a/collections/js-object-cloning.yaml b/collections/js/object-cloning.yaml similarity index 94% rename from collections/js-object-cloning.yaml rename to collections/js/object-cloning.yaml index 650272ee0..5f4e866e1 100644 --- a/collections/js-object-cloning.yaml +++ b/collections/js/object-cloning.yaml @@ -1,4 +1,4 @@ -slug: c/js-object-cloning +slug: js/object-cloning name: JavaScript Object Cloning featured: true snippetIds: diff --git a/collections/js-object-key-selection.yaml b/collections/js/object-key-selection.yaml similarity index 94% rename from collections/js-object-key-selection.yaml rename to collections/js/object-key-selection.yaml index 9f994c6b0..2d4567899 100644 --- a/collections/js-object-key-selection.yaml +++ b/collections/js/object-key-selection.yaml @@ -1,4 +1,4 @@ -slug: c/js-object-key-selection +slug: js/object-key-selection name: JavaScript Object Key Selection featured: true snippetIds: diff --git a/collections/js-object-key-transformations.yaml b/collections/js/object-key-transformations.yaml similarity index 93% rename from collections/js-object-key-transformations.yaml rename to collections/js/object-key-transformations.yaml index 75b1f9b33..6a431da3c 100644 --- a/collections/js-object-key-transformations.yaml +++ b/collections/js/object-key-transformations.yaml @@ -1,4 +1,4 @@ -slug: c/js-object-key-transformations +slug: js/object-key-transformations name: JavaScript Object Key Transformations featured: true snippetIds: diff --git a/collections/js-performance.yaml b/collections/js/performance.yaml similarity index 97% rename from collections/js-performance.yaml rename to collections/js/performance.yaml index 6cbce7132..f567fd988 100644 --- a/collections/js-performance.yaml +++ b/collections/js/performance.yaml @@ -1,4 +1,4 @@ -slug: c/js-performance +slug: js/performance name: JavaScript Performance Optimization featured: true snippetIds: diff --git a/collections/js-promises.yaml b/collections/js/promises.yaml similarity index 97% rename from collections/js-promises.yaml rename to collections/js/promises.yaml index 3bb228b2c..5c7867784 100644 --- a/collections/js-promises.yaml +++ b/collections/js/promises.yaml @@ -1,4 +1,4 @@ -slug: c/js-promises +slug: js/promises name: JavaScript Promises featured: true snippetIds: diff --git a/collections/js-proxy.yaml b/collections/js/proxy.yaml similarity index 98% rename from collections/js-proxy.yaml rename to collections/js/proxy.yaml index 3dafd1217..6d78a8760 100644 --- a/collections/js-proxy.yaml +++ b/collections/js/proxy.yaml @@ -1,4 +1,4 @@ -slug: c/js-proxy +slug: js/proxy name: JavaScript Proxy featured: true snippetIds: diff --git a/collections/js-random-value-generators.yaml b/collections/js/random-value-generators.yaml similarity index 95% rename from collections/js-random-value-generators.yaml rename to collections/js/random-value-generators.yaml index c384930b9..57f9a8ab7 100644 --- a/collections/js-random-value-generators.yaml +++ b/collections/js/random-value-generators.yaml @@ -1,4 +1,4 @@ -slug: c/js-random-value-generators +slug: js/random-value-generators name: JavaScript Random Value Generators featured: true snippetIds: diff --git a/collections/js-scroll.yaml b/collections/js/scroll.yaml similarity index 96% rename from collections/js-scroll.yaml rename to collections/js/scroll.yaml index b6bf5f9de..effd17986 100644 --- a/collections/js-scroll.yaml +++ b/collections/js/scroll.yaml @@ -1,4 +1,4 @@ -slug: c/js-scroll +slug: js/scroll name: Browser Scrolling with JavaScript featured: true snippetIds: diff --git a/collections/js-string-casing.yaml b/collections/js/string-casing.yaml similarity index 96% rename from collections/js-string-casing.yaml rename to collections/js/string-casing.yaml index 54771dc4e..e9cdfdc73 100644 --- a/collections/js-string-casing.yaml +++ b/collections/js/string-casing.yaml @@ -1,4 +1,4 @@ -slug: c/js-string-casing +slug: js/string-casing name: JavaScript String Casing featured: true snippetIds: diff --git a/collections/js-unit-conversions.yaml b/collections/js/unit-conversions.yaml similarity index 95% rename from collections/js-unit-conversions.yaml rename to collections/js/unit-conversions.yaml index 33ba034c1..f4b016c30 100644 --- a/collections/js-unit-conversions.yaml +++ b/collections/js/unit-conversions.yaml @@ -1,4 +1,4 @@ -slug: c/js-unit-conversions +slug: js/unit-conversions name: JavaScript Unit Conversions featured: true snippetIds: diff --git a/collections/js-url.yaml b/collections/js/url.yaml similarity index 98% rename from collections/js-url.yaml rename to collections/js/url.yaml index 7f59bd902..b6faa2737 100644 --- a/collections/js-url.yaml +++ b/collections/js/url.yaml @@ -1,4 +1,4 @@ -slug: c/js-url +slug: js/url name: URLs in JavaScript featured: true snippetIds: diff --git a/collections/js-web-storage-essentials.yaml b/collections/js/web-storage-essentials.yaml similarity index 94% rename from collections/js-web-storage-essentials.yaml rename to collections/js/web-storage-essentials.yaml index 2d5b5dcbe..ba8786079 100644 --- a/collections/js-web-storage-essentials.yaml +++ b/collections/js/web-storage-essentials.yaml @@ -1,4 +1,4 @@ -slug: c/js-web-storage-essentials +slug: js/web-storage-essentials name: Web Storage Essentials featured: true snippetIds: diff --git a/hub.yaml b/hub.yaml index b0b5ec816..f3d2b6aac 100644 --- a/hub.yaml +++ b/hub.yaml @@ -14,43 +14,43 @@ featuredListings: - react/hooks - js/algorithm - git -- c/js-interviews +- js/interviews - python - js/node -- c/js-data-structures -- c/js-promises -- c/js-comparison +- js/data-structures +- js/promises +- js/comparison - c/html-head-basics - css/centering -- c/js-css-manipulation -- c/js-url -- c/js-proxy -- c/js-dom-querying -- c/js-dom-manipulation -- c/js-event-handling -- c/js-arrow-functions -- c/js-performance +- js/css-manipulation +- js/url +- js/proxy +- js/dom-querying +- js/dom-manipulation +- js/event-handling +- js/arrow-functions +- js/performance - tips - c/react-rendering -- c/js-colors -- c/js-browser-capabilities -- c/js-array-methods -- c/js-array-tricks -- c/js-object-key-transformations +- js/colors +- js/browser-capabilities +- js/array-methods +- js/array-tricks +- js/object-key-transformations - c/react-testing - css/hover-effects -- c/js-string-casing -- c/js-generators -- c/js-array-set-operations +- js/string-casing +- js/generators +- js/array-set-operations - css/button-transitions -- c/js-random-value-generators -- c/js-web-storage-essentials -- c/js-scroll -- c/js-array-initialization +- js/random-value-generators +- js/web-storage-essentials +- js/scroll +- js/array-initialization - css/background-patterns -- c/js-object-cloning +- js/object-cloning - react/components -- c/js-http-requests +- js/http-requests - web-development -- c/js-object-key-selection +- js/object-key-selection - cheatsheets diff --git a/snippets/articles/s/js-array-initialization.md b/snippets/articles/s/js-array-initialization.md index 6cd3157b7..d964919ae 100644 --- a/snippets/articles/s/js-array-initialization.md +++ b/snippets/articles/s/js-array-initialization.md @@ -72,4 +72,4 @@ initializeArrayWithValues(4, 2); // [2, 2, 2, 2] initializeMappedArray(4, (_, i) => i * 2); // [0, 2, 4, 6] ``` -You can learn more tips and tricks related to JavaScript array initialization in [this collection](/c/js-array-initialization/p/1). +You can learn more tips and tricks related to JavaScript array initialization in [this collection](//js/array-initialization/p/1). From fcae13afa4d0c5446aa094af7a9cfc03c1573db2 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sun, 14 May 2023 22:42:17 +0300 Subject: [PATCH 5/5] Update remaining collections --- .../{html-head-basics.yaml => html/head-basics.yaml} | 2 +- collections/{react-rendering.yaml => react/rendering.yaml} | 2 +- collections/{react-testing.yaml => react/testing.yaml} | 2 +- hub.yaml | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) rename collections/{html-head-basics.yaml => html/head-basics.yaml} (96%) rename collections/{react-rendering.yaml => react/rendering.yaml} (96%) rename collections/{react-testing.yaml => react/testing.yaml} (97%) diff --git a/collections/html-head-basics.yaml b/collections/html/head-basics.yaml similarity index 96% rename from collections/html-head-basics.yaml rename to collections/html/head-basics.yaml index 2add3c849..937c52b84 100644 --- a/collections/html-head-basics.yaml +++ b/collections/html/head-basics.yaml @@ -1,4 +1,4 @@ -slug: c/html-head-basics +slug: html/head-basics name: HTML Head Basics featured: true snippetIds: diff --git a/collections/react-rendering.yaml b/collections/react/rendering.yaml similarity index 96% rename from collections/react-rendering.yaml rename to collections/react/rendering.yaml index 6d3295a3f..e687ca814 100644 --- a/collections/react-rendering.yaml +++ b/collections/react/rendering.yaml @@ -1,4 +1,4 @@ -slug: c/react-rendering +slug: react/rendering name: React Rendering miniName: Rendering parent: react diff --git a/collections/react-testing.yaml b/collections/react/testing.yaml similarity index 97% rename from collections/react-testing.yaml rename to collections/react/testing.yaml index 5d220a594..a31032b98 100644 --- a/collections/react-testing.yaml +++ b/collections/react/testing.yaml @@ -1,4 +1,4 @@ -slug: c/react-testing +slug: react/testing name: React Testing shortName: Testing parent: react diff --git a/hub.yaml b/hub.yaml index f3d2b6aac..6143361ee 100644 --- a/hub.yaml +++ b/hub.yaml @@ -20,7 +20,7 @@ featuredListings: - js/data-structures - js/promises - js/comparison -- c/html-head-basics +- html/head-basics - css/centering - js/css-manipulation - js/url @@ -31,13 +31,13 @@ featuredListings: - js/arrow-functions - js/performance - tips -- c/react-rendering +- react/rendering - js/colors - js/browser-capabilities - js/array-methods - js/array-tricks - js/object-key-transformations -- c/react-testing +- react/testing - css/hover-effects - js/string-casing - js/generators