diff --git a/README.md b/README.md index 123d1cda..0db7411e 100644 --- a/README.md +++ b/README.md @@ -21,11 +21,10 @@ This project aims to be the "Yellow pages" of the NMS community. Our goal is to ## Submitting a Community Link -There are currently two methods of submitting Community Links: -- **Easy method**: Complete this form [airtable.com/shrhZOQrrp9a9zoJk](https://airtable.com/shrhZOQrrp9a9zoJk?ref=nmscdCommunitySearchReadMe) +Complete this form [airtable.com/shrhZOQrrp9a9zoJk](https://airtable.com/shrhZOQrrp9a9zoJk?ref=nmscdCommunitySearchReadMe) - We will look at your application and move it to the public data if it meets our requirements. -- **Developer method**: You can add your community link to the [manualCommunityList.json](/seo/data/manualCommunityList.json) and then create a pull request. - - Please be sure to use urls to images that are publicly available (test your images in incognito mode) + - Please include contact info so that we can contact you if there are any issues + If your Community Link does not show up on the site after a day or two, feel free to contact the [AssistantNMS support email](mailto:support@nmsassistant.com). Multiple members have access to the support system that monitors that email address. OR you can open an issue in this repository. diff --git a/package-lock.json b/package-lock.json index 337af40a..351385f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "community-search", - "version": "0.0.6", + "version": "0.0.80", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "community-search", - "version": "0.0.6", + "version": "0.0.80", "license": "MIT", "dependencies": { "@hope-ui/solid": "^0.6.2", diff --git a/public/assets/img/manual/alianza-banner.jpg b/public/assets/img/manual/alianza-banner.jpg deleted file mode 100644 index aced2b51..00000000 Binary files a/public/assets/img/manual/alianza-banner.jpg and /dev/null differ diff --git a/public/assets/img/manual/alianza.png b/public/assets/img/manual/alianza.png deleted file mode 100644 index 05cec600..00000000 Binary files a/public/assets/img/manual/alianza.png and /dev/null differ diff --git a/public/assets/img/manual/image_2022-12-06_081707134.png b/public/assets/img/manual/image_2022-12-06_081707134.png deleted file mode 100644 index 86744da9..00000000 Binary files a/public/assets/img/manual/image_2022-12-06_081707134.png and /dev/null differ diff --git a/seo/data/manualCommunityList.json b/seo/data/manualCommunityList.json deleted file mode 100644 index 8dd69685..00000000 --- a/seo/data/manualCommunityList.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "id": "recgnX8iuC6YcM9Uo", - "name": "Alianza Galactica de NMS Latino", - "icon": "/assets/img/manual/alianza.png", - "banners": [ - "/assets/img/manual/alianza-banner.jpg" - ], - "desc": "Grupo interactivo para apoyar a los jugadores novatos y expertos en las mecánicas de este gran juego", - "tags": [ - "Facebook", - "Spanish" - ], - "links": [ - "https://www.facebook.com/groups/286145506232363", - "[facebook group](https://www.facebook.com/groups/286145506232363)" - ] - }, - { - "id": "reckj9lDV2EiUENFQ", - "name": "Galactic Hub Eissentam", - "icon": "/assets/img/manual/image_2022-12-06_081707134.png", - "desc": "Expansion of the Galactic Hub Project community into the 10th galaxy", - "tags": [ - "Reddit", - "Civilization", - "Wiki" - ], - "links": [ - "https://www.reddit.com/r/GalacticHub_Eissentam/", - "https://nomanssky.fandom.com/wiki/Galactic_Hub_Eissentam" - ] - } -] diff --git a/seo/node/getAirtableData.js b/seo/node/getAirtableData.js index 6e12ff89..005f1137 100644 --- a/seo/node/getAirtableData.js +++ b/seo/node/getAirtableData.js @@ -10,7 +10,6 @@ const tables = { name: 'Main', view: 'VisibleCommunities', json: 'communityList.json', - addititionalJson: 'manualCommunityList.json', records: [ { source: 'Name', @@ -114,28 +113,8 @@ async function generateJsonFromAirtable() { return; } - let allData = [...allItems]; - if (currentTable.addititionalJson != null) { - const manualString = fs.readFileSync(`./data/${currentTable.addititionalJson}`, { encoding: 'utf8' }); - const manual = JSON.parse(manualString); - - for (const manualItem of manual) { - let found = false; - for (let allDataIndex = 0; allDataIndex < allData.length; allDataIndex++) { - const allDataItem = allData[allDataIndex]; - if (allDataItem.id != manualItem.id) continue; - allData[allDataIndex] = { ...manualItem }; - found = true; - } - if (found == false) { - allData.push({ ...manualItem }); - } - } - - } - - console.log('write file ' + allData.length); - fs.writeFile(`../src/assets/data/${currentTable.json}`, JSON.stringify(allData), ['utf8'], () => { }); + console.log('write file ' + allItems.length); + fs.writeFile(`../src/assets/data/${currentTable.json}`, JSON.stringify(allItems), ['utf8'], () => { }); }); } }