Skip to content

Commit

Permalink
feat: beta for endwalker new jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrkafuu committed Oct 19, 2021
1 parent fd9c4a9 commit 0e71aa9
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 23 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ src/source/**
rollup.config.js
lib/**
node_modules/**
*.ts
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: "14"
- run: npm install
- run: npm run build

Expand All @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: "14"
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ffxiv-overlay-api",
"version": "3.6.0",
"version": "3.7.0-beta.1",
"description": "Build your own modern FFXIV overlay with npm.",
"keywords": [
"ffxiv",
Expand All @@ -15,15 +15,15 @@
"main": "lib/index.esm.js",
"repository": "github:dsrkafuu/ffxiv-overlay-api",
"devDependencies": {
"@babel/core": "~7.15.5",
"@babel/eslint-parser": "~7.15.7",
"@babel/core": "~7.15.8",
"@babel/eslint-parser": "~7.15.8",
"@babel/plugin-proposal-class-properties": "~7.14.5",
"@babel/preset-env": "~7.15.6",
"@babel/preset-env": "~7.15.8",
"@rollup/plugin-babel": "~5.3.0",
"concurrently": "~6.2.1",
"concurrently": "~6.3.0",
"cross-env": "~7.0.3",
"eslint": "^7.32.0",
"rollup": "~2.56.3",
"eslint": "^8.0.1",
"rollup": "~2.58.0",
"rollup-plugin-copy": "~3.4.0",
"rollup-plugin-terser": "~7.0.2",
"serve": "~12.0.1"
Expand Down
51 changes: 37 additions & 14 deletions src/components/extendData.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,49 @@ function parseJob(jobName) {
jobName = jobName.toLowerCase();

const dps = [
'acn',
'arc',
'blm',
'brd',
'drg',
'dnc',
'lnc',
'mch',
'mnk',
'nin',
'pgl',
'pug',
'rdm',
'mnk',
'rog',
'sam',
'nin',
'lnc',
'drg',
'arc',
'brd',
'acn',
'smn',
'thm',
'blm',
// heavensward
'mch',
// stormblood
'rdm',
'sam',
// shadowbringers
'dnc',
// endwalker
'rpr',
];
const heal = [
'cnj',
'whm',
'sch',
// heavensward
'ast',
// endwalker
'sge',
];
const tank = [
'gla',
'gld',
'pld',
'mrd',
'war',
// heavensward
'drk',
// shadowbringers
'gnb',
];
const heal = ['ast', 'cnj', 'sch', 'whm'];
const tank = ['drk', 'gla', 'gld', 'gnb', 'mrd', 'pld', 'war'];

if (dps.includes(jobName)) {
return 'dps';
Expand Down

0 comments on commit 0e71aa9

Please sign in to comment.