Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
4f376f4
Update index.jsx
bbdoc Jun 6, 2022
89767b5
Update Utility.js
bbdoc Jun 6, 2022
1fc2c07
Update package.json
bbdoc Jun 6, 2022
fc81333
Update yarn.lock
bbdoc Jun 8, 2022
c4aec44
Merge pull request #509 from bbdoc/patch-2
TurtIeSocks Jun 8, 2022
63b3125
Fix nest searching
TurtIeSocks Jun 8, 2022
8e7f609
Filter by Quest Conditions
TurtIeSocks Jun 9, 2022
fad502f
Update Advanced.jsx
TurtIeSocks Jun 9, 2022
005e850
Clean translation keys
TurtIeSocks Jun 9, 2022
691526e
Filter fix
TurtIeSocks Jun 9, 2022
66938f5
Cleanup
TurtIeSocks Jun 9, 2022
5305e4e
More cleanup
TurtIeSocks Jun 10, 2022
620e47a
Frontend labels
TurtIeSocks Jun 10, 2022
2b4d81b
Clarify update logs
TurtIeSocks Jun 10, 2022
bb130d3
Merge pull request #511 from WatWowMap/quest-condition-filtering
TurtIeSocks Jun 11, 2022
8f43725
Available Slots Compatibility
TurtIeSocks Jun 19, 2022
92baddf
Merge pull request #512 from WatWowMap/available-slots-adjustments
TurtIeSocks Jun 19, 2022
22bd9df
Update fr.json
TurtIeSocks Jun 19, 2022
5319cba
Consistent Linting
TurtIeSocks Jun 19, 2022
971643a
Update Lint Action
TurtIeSocks Jun 19, 2022
e32ef25
Fixes
TurtIeSocks Jun 19, 2022
2d830de
Update configMigration.js
TurtIeSocks Jun 19, 2022
766d7e8
Update vscode files
TurtIeSocks Jun 19, 2022
da10022
Merge pull request #513 from WatWowMap/consistent-linting
TurtIeSocks Jun 19, 2022
13ec973
Log User Perms in Discord
TurtIeSocks Jun 19, 2022
67bac99
Merge pull request #514 from WatWowMap/log-user-perms
TurtIeSocks Jun 19, 2022
1221b2f
Update scannerPerms.js
TurtIeSocks Jun 19, 2022
d94a391
Update scannerPerms.js
TurtIeSocks Jun 20, 2022
b437b87
Expand Scan Areas List
TurtIeSocks Jun 20, 2022
7424eb7
Borders & Fix for areas.json
TurtIeSocks Jun 20, 2022
af96fcf
Update Examples
TurtIeSocks Jun 20, 2022
047ecf0
Better fill/stroke support
TurtIeSocks Jun 20, 2022
6b6a9d1
Fallback catches
TurtIeSocks Jun 20, 2022
3042735
Better odd count handling
TurtIeSocks Jun 20, 2022
f6e8c6a
Move logic to the server
TurtIeSocks Jun 21, 2022
bd5297a
Add color to the examples
TurtIeSocks Jun 21, 2022
5a809fb
Merge pull request #516 from WatWowMap/expand-scan-areas-list
TurtIeSocks Jun 21, 2022
6bd9717
Version bump
TurtIeSocks Jun 21, 2022
789c88b
Allow user selectable areas
TurtIeSocks Jun 22, 2022
61a773f
Lint fixes
TurtIeSocks Jun 22, 2022
837060a
Alt approach to gql versioning
TurtIeSocks Jun 22, 2022
b7c1151
Update scanAreas.js
TurtIeSocks Jun 22, 2022
e67307b
Fixes
TurtIeSocks Jun 22, 2022
5c7f1f9
Var rename
TurtIeSocks Jun 22, 2022
de64471
Fixes
TurtIeSocks Jun 22, 2022
7999bba
Version bump
TurtIeSocks Jun 23, 2022
4ca2eef
Merge pull request #518 from WatWowMap/user-selectable-area-filters
TurtIeSocks Jun 23, 2022
288ca7c
Fallbacks
TurtIeSocks Jun 23, 2022
c24c167
submission cell fix
TurtIeSocks Jun 23, 2022
aa8ff3b
Optional Show Labels
TurtIeSocks Jun 24, 2022
9c636f5
Synced docker env vars with latest config
TurtIeSocks Jun 24, 2022
a01df87
Merge pull request #519 from WatWowMap/optional-show-labels
TurtIeSocks Jun 24, 2022
941a71e
Weather Area Restrictions
TurtIeSocks Jun 24, 2022
086478d
Update Weather.js
TurtIeSocks Jun 24, 2022
9360f65
Merge pull request #520 from WatWowMap/weather-area-restrictions
TurtIeSocks Jun 24, 2022
2f98a2d
fix spawnpoints
TurtIeSocks Jun 24, 2022
3f20329
Update getAreaSql.js
TurtIeSocks Jun 24, 2022
cdec69a
Update Search.jsx
TurtIeSocks Jun 24, 2022
1234189
Fix What's Available Cache Issue
TurtIeSocks Jun 25, 2022
273373b
Linting...
TurtIeSocks Jun 25, 2022
bc50459
Merge pull request #521 from WatWowMap/available-cache-issue
TurtIeSocks Jun 25, 2022
dd48a64
Update nodemon
TurtIeSocks Jun 25, 2022
cb377b4
More Scan Area Refinement
TurtIeSocks Jun 25, 2022
38fb99d
Merge pull request #522 from WatWowMap/more-scan-area-refinement
TurtIeSocks Jun 25, 2022
08efa1d
More default locales
TurtIeSocks Jun 26, 2022
6236ad7
Update useStore.js
TurtIeSocks Jun 26, 2022
647c37c
Lots of Refinments
TurtIeSocks Jun 26, 2022
88229c6
linting
TurtIeSocks Jun 26, 2022
40d3dd6
Update areas.js
TurtIeSocks Jun 26, 2022
6a0b971
Update default.json
TurtIeSocks Jun 26, 2022
7ddd3e2
Merge pull request #524 from WatWowMap/scan-area-adjustments
TurtIeSocks Jun 26, 2022
1fe22ea
Add missing locales
TurtIeSocks Jun 26, 2022
94d8b00
Modify Poracle Conversion Script
TurtIeSocks Jun 26, 2022
1fa7031
Update de.json
TurtIeSocks Jun 27, 2022
bf6fbfa
Merge pull request #525 from WatWowMap/update-locales
TurtIeSocks Jun 28, 2022
abadc4d
Automated Releases
TurtIeSocks Jun 30, 2022
2d99ffb
Merge pull request #527 from WatWowMap/release-action
TurtIeSocks Jun 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
dist
node_modules
node_modules
public/missing-locales
public/images/custom
public/images/uicons
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": [
"airbnb",
"airbnb/rules/react",
"eslint:recommended"
"eslint:recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest"
Expand Down
37 changes: 23 additions & 14 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,29 @@ name: Lint
on: [push]

jobs:
Lint:
lint:
name: Run Basic Checks
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Checkout Code
id: checkout-code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'

- name: Test the Testcases
run:
npm install -g yarn
yarn install
yarn build
- name: Install Dependencies
run: yarn

- name: Lint
run: yarn eslint:check

- name: Prettier
run: yarn prettier:check

- name: Build
run: yarn build
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release
on: [release]

jobs:
sentry:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
id: checkout-code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'

- name: Install Dependencies
run: yarn

- name: Sentry Build
run: yarn release
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist
node_modules
public/missing-locales
public/images/custom
public/images/uicons
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"trailingComma": "all",
"singleQuote": true
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"esbenp.prettier-vscode",
"leizongmin.node-module-intellisense",
"eg2.vscode-npm-script",
"2gua.rainbow-brackets"
"graphql.vscode-graphql"
]
}
11 changes: 2 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,12 @@
"public/base-locales"
],
"i18n-ally.keystyle": "flat",
"[typescript]": {
"editor.autoClosingBrackets": "always",
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[javascript]": {
"editor.autoClosingBrackets": "always",
"editor.defaultFormatter": "vscode.typescript-language-features"
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.autoClosingBrackets": "always",
"editor.defaultFormatter": "vscode.typescript-language-features"
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
}
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactmap",
"version": "1.2.7",
"version": "1.3.0",
"description": "React based frontend map.",
"main": "ReactMap.mjs",
"author": "TurtIeSocks <58572875+TurtIeSocks@users.noreply.github.com>",
Expand All @@ -23,7 +23,11 @@
"migrate:make": "knex --knexfile server/knexfile.cjs migrate:make",
"migrate:latest": "knex --knexfile server/knexfile.cjs migrate:latest",
"migrate:rollback": "knex --knexfile server/knexfile.cjs migrate:rollback",
"release": "node server/scripts/newRelease.js"
"release": "node server/scripts/newRelease.js",
"prettier:check": "prettier --check \"**/*.{js,jsx}\"",
"prettier:fix": "prettier --write \"**/*.{js,jsx}\"",
"eslint:check": "eslint \"**/*.{js,jsx}\"",
"eslint:fix": "eslint \"**/*.{js,jsx}\" --fix"
},
"engines": {
"node": ">=16",
Expand All @@ -39,12 +43,14 @@
"esbuild-server": "^0.1.0",
"eslint": "^8.9.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"nodemon": "^2.0.7"
"nodemon": "^2.0.7",
"prettier": "^2.6.2"
},
"dependencies": {
"@apollo/client": "^3.3.11",
Expand All @@ -54,6 +60,7 @@
"@material-ui/styles": "^4.11.4",
"@sentry/react": "^6.19.7",
"@sentry/tracing": "^6.19.7",
"@turf/boolean-overlap": "^6.5.0",
"@turf/boolean-point-in-polygon": "^6.5.0",
"@turf/center": "^6.3.0",
"@turf/destination": "^6.5.0",
Expand Down Expand Up @@ -97,7 +104,7 @@
"prop-types": "^15.7.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-ga": "^3.3.0",
"react-ga4": "^1.4.1",
"react-i18next": "^11.16.7",
"react-leaflet": "3.2.2",
"react-leaflet-markercluster": "3.0.0-rc1",
Expand Down
6 changes: 5 additions & 1 deletion public/base-locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -547,5 +547,9 @@
"light_map_border": "heller Kartenrand",
"dark_map_border": "dunkler Kartenrand",
"cell_blocked": "Zelle ist blockiert",
"poi_color": "POI Farbe"
"poi_color": "POI Farbe",
"ultra_beast": "Ultrabestie",
"quest_condition": "Questbedingung",
"always_show_labels": "Labels immer anzeigen",
"scan_areas_options": "Optionen für Scanbereiche"
}
5 changes: 4 additions & 1 deletion public/base-locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,5 +543,8 @@
"light_map_border": "Light Map Border",
"dark_map_border": "Dark Map Border",
"cell_blocked": "Cell Blocked",
"poi_color": "POI Color"
"poi_color": "POI Color",
"quest_condition": "Quest Condition",
"always_show_labels": "Always Show Labels",
"scan_areas_options": "Scan Areas Options"
}
6 changes: 5 additions & 1 deletion public/base-locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -539,5 +539,9 @@
"light_map_border": "Borde de mapa claro",
"dark_map_border": "Borde oscuro del mapa",
"cell_blocked": "Celda bloqueada",
"poi_color": "Color de punto de interés"
"poi_color": "Color de punto de interés",
"ultra_beast": "Ultrabestia",
"quest_condition": "Condición de misión",
"always_show_labels": "Mostrar siempre etiquetas",
"scan_areas_options": "Opciones de áreas de escaneo"
}
14 changes: 9 additions & 5 deletions public/base-locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,15 @@
"react_error": "Un problème est survenu",
"clickable_icon": "L'icône est cliquable",
"weather_options": "Options météo",
"two_stops_till_next": "2 arrêts jusqu'à la prochaine",
"one_stop_till_next": "1 arrêt jusqu'au prochain",
"no_more_gyms": "Plus de gymnases",
"light_map_border": "Bordure de carte lumineuse",
"two_stops_till_next": "2 pokéstops jusqu'à la prochaine",
"one_stop_till_next": "1 pokéstops jusqu'à la prochaine",
"no_more_gyms": "Plus d'arènes",
"light_map_border": "Bordure de carte claire",
"dark_map_border": "Bordure de carte sombre",
"cell_blocked": "Cellule bloquée",
"poi_color": "Couleur du point d'intérêt"
"poi_color": "Couleur du point d'intérêt",
"ultra_beast": "Ultra Bête",
"quest_condition": "État de la quête",
"always_show_labels": "Toujours afficher les étiquettes",
"scan_areas_options": "Options des zones de numérisation"
}
6 changes: 5 additions & 1 deletion public/base-locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,5 +510,9 @@
"light_map_border": "Bordo mappa chiaro",
"dark_map_border": "Bordo mappa scuro",
"cell_blocked": "Cella bloccata",
"poi_color": "Colore PDI"
"poi_color": "Colore PDI",
"ultra_beast": "Ultra bestia",
"quest_condition": "Condizione di ricerca",
"always_show_labels": "Mostra sempre le etichette",
"scan_areas_options": "Opzioni delle aree di scansione"
}
6 changes: 5 additions & 1 deletion public/base-locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,5 +510,9 @@
"light_map_border": "ライトマップボーダー",
"dark_map_border": "ダークマップボーダー",
"cell_blocked": "セルがブロックされました",
"poi_color": "POIカラー"
"poi_color": "POIカラー",
"ultra_beast": "ウルトラビースト",
"quest_condition": "クエスト条件",
"always_show_labels": "常にラベルを表示する",
"scan_areas_options": "スキャンエリアオプション"
}
6 changes: 5 additions & 1 deletion public/base-locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,5 +510,9 @@
"light_map_border": "라이트 맵 테두리",
"dark_map_border": "어두운 지도 테두리",
"cell_blocked": "차단된 셀",
"poi_color": "POI 색상"
"poi_color": "POI 색상",
"ultra_beast": "울트라 비스트",
"quest_condition": "퀘스트 조건",
"always_show_labels": "항상 레이블 표시",
"scan_areas_options": "스캔 영역 옵션"
}
6 changes: 5 additions & 1 deletion public/base-locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -542,5 +542,9 @@
"light_map_border": "Lichte kaartrand",
"dark_map_border": "Donkere kaartrand",
"cell_blocked": "Cel geblokkeerd",
"poi_color": "POI-kleur"
"poi_color": "POI-kleur",
"ultra_beast": "Ultrabeest",
"quest_condition": "Quest-voorwaarde",
"always_show_labels": "Altijd labels weergeven",
"scan_areas_options": "Opties voor scangebieden"
}
6 changes: 5 additions & 1 deletion public/base-locales/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,5 +510,9 @@
"light_map_border": "Borda do mapa de luz",
"dark_map_border": "Borda do mapa escuro",
"cell_blocked": "Célula bloqueada",
"poi_color": "Cor do POI"
"poi_color": "Cor do POI",
"ultra_beast": "Ultra Besta",
"quest_condition": "Condição da Missão",
"always_show_labels": "Sempre mostrar marcadores",
"scan_areas_options": "Opções de áreas de digitalização"
}
6 changes: 5 additions & 1 deletion public/base-locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,5 +510,9 @@
"light_map_border": "Граница световой карты",
"dark_map_border": "Темная граница карты",
"cell_blocked": "Сотовый заблокирован",
"poi_color": "Цвет POI"
"poi_color": "Цвет POI",
"ultra_beast": "Ультра Чудовище",
"quest_condition": "Состояние квеста",
"always_show_labels": "Всегда показывать ярлыки",
"scan_areas_options": "Параметры областей сканирования"
}
6 changes: 5 additions & 1 deletion public/base-locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,5 +510,9 @@
"light_map_border": "Ljus kartgräns",
"dark_map_border": "Mörk kartgräns",
"cell_blocked": "Cell blockerad",
"poi_color": "POI-färg"
"poi_color": "POI-färg",
"ultra_beast": "Ultra Beast",
"quest_condition": "Quest tillstånd",
"always_show_labels": "Visa alltid etiketter",
"scan_areas_options": "Alternativ för skanningsområden"
}
6 changes: 5 additions & 1 deletion public/base-locales/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,5 +510,9 @@
"light_map_border": "เส้นขอบแผนที่แสง",
"dark_map_border": "เส้นขอบแผนที่มืด",
"cell_blocked": "เซลล์ถูกบล็อก",
"poi_color": "POI สี"
"poi_color": "POI สี",
"ultra_beast": "อุลตร้าบีสท์",
"quest_condition": "เงื่อนไขภารกิจ",
"always_show_labels": "แสดงป้ายกำกับเสมอ",
"scan_areas_options": "ตัวเลือกพื้นที่สแกน"
}
6 changes: 5 additions & 1 deletion public/base-locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
"light_map_border": "Hafif Harita Sınırı",
"dark_map_border": "Karanlık Harita Kenarlığı",
"cell_blocked": "Hücre Engellendi",
"poi_color": "POI Rengi"
"poi_color": "POI Rengi",
"ultra_beast": "Ultra Canavar",
"quest_condition": "Görev Durumu",
"always_show_labels": "Etiketleri Her Zaman Göster",
"scan_areas_options": "Tarama Alanları Seçenekleri"
}
6 changes: 5 additions & 1 deletion public/base-locales/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,5 +510,9 @@
"light_map_border": "光照貼圖邊框",
"dark_map_border": "深色地圖邊框",
"cell_blocked": "單元格阻塞",
"poi_color": "興趣點顏色"
"poi_color": "興趣點顏色",
"ultra_beast": "超野獸",
"quest_condition": "任務條件",
"always_show_labels": "始終顯示標籤",
"scan_areas_options": "掃描區域選項"
}
Loading