Skip to content

Commit

Permalink
mv servers to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Dec 21, 2024
1 parent 4e75b64 commit 3de6668
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
28 changes: 2 additions & 26 deletions src/lib/YapTally.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { onMount } from 'svelte';
import { writable } from 'svelte/store';
import fetchJsonp from 'fetch-jsonp';
import Servers from './data/servers.json';
interface YapServer {
name: string;
Expand All @@ -18,32 +19,7 @@
data: ServerData[];
}
const yapServers: YapServer[] = [
{ name: 'Al-Sask Region', url: 'https://bmltyap.org/AlSask/upgrade-advisor.php', jsonp: true },
{ name: 'Arizona Region', url: 'https://arizona-na.org/yap/live/upgrade-advisor.php' },
{ name: 'Australia Region', url: 'https://na.org.au/yap/upgrade-advisor.php' },
{ name: 'Bayou Recovery Area', url: 'https://bmltyap.org/brana/upgrade-advisor.php', jsonp: true },
{ name: 'Canadian Assembly', url: 'https://canaacna.org/yap/upgrade-advisor.php', jsonp: true },
{ name: 'Central Atlantic Region', url: 'https://yap.centralatlanticregionofna.org/upgrade-advisor.php', jsonp: true },
{ name: 'Connecticut Region', url: 'https://yap.ctna.org/upgrade-advisor.php' },
{ name: 'Esperanza Area', url: 'https://bmltyap.org/esperanza-yap/upgrade-advisor.php', jsonp: true },
{ name: 'FreeState Region Area', url: 'https://freestatena.org/yap-4.2.8/upgrade-advisor.php' },
{ name: 'Hill Country Area', url: 'https://hillcountryna.org/yap/upgrade-advisor.php' },
{ name: 'Kentucky', url: 'https://bmlt.bmltky.online/yap/upgrade-advisor.php' },
{ name: 'Louisiana Region', url: 'https://dontuse.org/upgrade-advisor.php' },
{ name: 'Mississippi Region', url: 'https://mrscna.net/yap/upgrade-advisor.php', jsonp: true },
{ name: 'Mountaineer Region', url: 'https://yap.yapmrscna.org/upgrade-advisor.php' },
{ name: 'New England Region', url: 'https://phoneline.nerna.org/yap/upgrade-advisor.php' },
{ name: 'Northern New York Region', url: 'https://yap.nny-na.org/upgrade-advisor.php', jsonp: true },
{ name: 'Plains States Zonal Forum', url: 'https://pszfna.org/yap/upgrade-advisor.php' },
{ name: 'Region 51', url: 'https://phoneline.region51na.org/upgrade-advisor.php', jsonp: true },
{ name: 'San Francisco Area', url: 'https://phoneline.sfna.org/upgrade-advisor.php', jsonp: true },
{ name: 'Show Me Region', url: 'https://missourina.org/yap/upgrade-advisor.php' },
{ name: 'Southeast Texas Area', url: 'https://bmltyap.org/southeastTX-Yap/upgrade-advisor.php', jsonp: true },
{ name: 'Southeastern Zonal Forum', url: 'https://bmlt.sezf.org/zonal-yap/upgrade-advisor.php?override_service_body_config_id=43' },
{ name: 'Volunteer Region', url: 'https://natennessee.org/yap/upgrade-advisor.php' },
{ name: 'Western States Zonal Forum', url: 'https://bmlt.wszf.org/yap/upgrade-advisor.php' }
];
const yapServers: YapServer[] = Servers;
const yapServerData = writable<YapServerData[]>([]);
let sortDirection = writable(1);
Expand Down
26 changes: 26 additions & 0 deletions src/lib/data/servers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{ "name": "Al-Sask Region", "url": "https://bmltyap.org/AlSask/upgrade-advisor.php", "jsonp": true },
{ "name": "Arizona Region", "url": "https://arizona-na.org/yap/live/upgrade-advisor.php" },
{ "name": "Australia Region", "url": "https://na.org.au/yap/upgrade-advisor.php" },
{ "name": "Bayou Recovery Area", "url": "https://bmltyap.org/brana/upgrade-advisor.php", "jsonp": true },
{ "name": "Canadian Assembly", "url": "https://canaacna.org/yap/upgrade-advisor.php", "jsonp": true },
{ "name": "Central Atlantic Region", "url": "https://yap.centralatlanticregionofna.org/upgrade-advisor.php", "jsonp": true },
{ "name": "Connecticut Region", "url": "https://yap.ctna.org/upgrade-advisor.php" },
{ "name": "Esperanza Area", "url": "https://bmltyap.org/esperanza-yap/upgrade-advisor.php", "jsonp": true },
{ "name": "FreeState Region Area", "url": "https://freestatena.org/yap-4.2.8/upgrade-advisor.php" },
{ "name": "Hill Country Area", "url": "https://hillcountryna.org/yap/upgrade-advisor.php" },
{ "name": "Kentucky", "url": "https://bmlt.bmltky.online/yap/upgrade-advisor.php" },
{ "name": "Louisiana Region", "url": "https://dontuse.org/upgrade-advisor.php" },
{ "name": "Mississippi Region", "url": "https://mrscna.net/yap/upgrade-advisor.php", "jsonp": true },
{ "name": "Mountaineer Region", "url": "https://yap.yapmrscna.org/upgrade-advisor.php" },
{ "name": "New England Region", "url": "https://phoneline.nerna.org/yap/upgrade-advisor.php" },
{ "name": "Northern New York Region", "url": "https://yap.nny-na.org/upgrade-advisor.php", "jsonp": true },
{ "name": "Plains States Zonal Forum", "url": "https://pszfna.org/yap/upgrade-advisor.php" },
{ "name": "Region 51", "url": "https://phoneline.region51na.org/upgrade-advisor.php", "jsonp": true },
{ "name": "San Francisco Area", "url": "https://phoneline.sfna.org/upgrade-advisor.php", "jsonp": true },
{ "name": "Show Me Region", "url": "https://missourina.org/yap/upgrade-advisor.php" },
{ "name": "Southeast Texas Area", "url": "https://bmltyap.org/southeastTX-Yap/upgrade-advisor.php", "jsonp": true },
{ "name": "Southeastern Zonal Forum", "url": "https://bmlt.sezf.org/zonal-yap/upgrade-advisor.php?override_service_body_config_id=43" },
{ "name": "Volunteer Region", "url": "https://natennessee.org/yap/upgrade-advisor.php" },
{ "name": "Western States Zonal Forum", "url": "https://bmlt.wszf.org/yap/upgrade-advisor.php" }
]

0 comments on commit 3de6668

Please sign in to comment.