repos / neovimcraft

website that makes it easy to find neovim plugins
git clone https://github.com/neurosnap/neovimcraft.git

commit
70b8a3f
parent
ea38f00
author
Eric Bower
date
2023-04-12 13:42:05 +0000 UTC
chore: remove tags from configs
2 files changed,  +10, -13
M src/scripts/resource.ts
+8, -5
 1@@ -73,11 +73,14 @@ function cli(opt: "config" | "plugin") {
 2     }
 3   }
 4 
 5-  console.log(
 6-    "\nNOTICE: Please review all current tags and see if any fit, only add new tags if absolutely necessary\n",
 7-  );
 8-  const tagsRes = prompt("tags (comma separated):") || "";
 9-  const tags = tagsRes.split(",");
10+  let tags: string[] = [];
11+  if (opt === "plugin") {
12+    console.log(
13+      "\nNOTICE: Please review all current tags and see if any fit, only add new tags if absolutely necessary\n",
14+    );
15+    const tagsRes = prompt("tags (comma separated):") || "";
16+    tags = tagsRes.split(",");
17+  }
18 
19   return createResource({
20     type: type as any,
M src/scripts/static.ts
+2, -8
 1@@ -358,13 +358,9 @@ const createSearchPage = (data: PluginData, by: keyof Plugin) => {
 2 
 3 const createSearchConfigPage = (data: PluginData, by: keyof Plugin) => {
 4   const pluginsStr = data.plugins.sort(onSort(by)).reduce((acc, plugin) => {
 5-    const plug = createPluginItem(plugin, getTags(data.tagDb, plugin.tags));
 6+    const plug = createPluginItem(plugin, []);
 7     return `${acc}\n${plug}`;
 8   }, "");
 9-  const tagListStr = data.tags.reduce(
10-    (acc, tag) => `${acc}\n${createTag(tag)}`,
11-    "",
12-  );
13   const sortStr = () => {
14     let str = "";
15     if (by === "stars") {
16@@ -422,9 +418,7 @@ const createSearchConfigPage = (data: PluginData, by: keyof Plugin) => {
17     <span><a href="https://github.com/neurosnap/neovimcraft#want-to-submit-a-config">Submit a config</a></span>
18   </div>
19 
20-  <div class="sidebar">
21-    ${tagListStr}
22-  </div>
23+  <div class="sidebar"></div>
24   <div class="rightbar">
25     ${createAds()}
26   </div>