Compare commits

...

18 Commits

Author SHA1 Message Date
sigonasr2 88997db4ec deploy: 97e98a0b14 3 years ago
sigonasr2 ab1dc88edf deploy: 3567a68871 3 years ago
Rawrington 02b8d01101 Update gh-pages 4 years ago
Rawrington de281ad03d Update gh-pages. 4 years ago
Rawrington 9bb30641ca oops unversioned files! 4 years ago
Rawrington f9ad955ad9 Update gh-pages 4 years ago
Rawrington 767c145e1b new build of the app 5 years ago
Rawrington a56d52b258 update github pages 5 years ago
Rawrington dbf116c854 test 5 years ago
Rawrington 753ec7e5bb Updated pages to latest version 5 years ago
Rawrington d1ccc20d29 update pages 5 years ago
Rawrington 61ab5bb5ef update pages 5 years ago
Rawrington 3d2b12ca64 attempted fix 5 years ago
Rawrington 46af9953e8 whoops fixed uploaded content 5 years ago
Rawrington c26d09b74f updated to current build 5 years ago
Rawrington 879fe8af5c updating version 5 years ago
Rawrington 61447e7fca Fixed directory fuckery 5 years ago
Rawrington f719bdf8b9 added gh-pages branch for github pages 5 years ago
  1. 23
      .gitignore
  2. 0
      .nojekyll
  3. 68
      README.md
  4. 20
      asset-manifest.json
  5. 0
      favicon.ico
  6. 1
      index.html
  7. 0
      manifest.json
  8. 12759
      package-lock.json
  9. 32
      package.json
  10. 25
      public/index.html
  11. 23
      src/ACTWebsocket.js
  12. 45
      src/Action.js
  13. 81
      src/App.js
  14. 25
      src/css/Action.css
  15. 17
      src/css/App.css
  16. 16
      src/css/index.css
  17. 12
      src/index.js
  18. 135
      src/serviceWorker.js
  19. 2
      static/css/main.af6b9f88.chunk.css
  20. 1
      static/css/main.af6b9f88.chunk.css.map
  21. 3
      static/js/2.4d71e7f6.chunk.js
  22. 41
      static/js/2.4d71e7f6.chunk.js.LICENSE.txt
  23. 1
      static/js/2.4d71e7f6.chunk.js.map
  24. 2
      static/js/main.e1247fe5.chunk.js
  25. 1
      static/js/main.e1247fe5.chunk.js.map
  26. 2
      static/js/runtime-main.58acd0bf.js
  27. 1
      static/js/runtime-main.58acd0bf.js.map

23
.gitignore vendored

@ -1,23 +0,0 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*

@ -1,68 +0,0 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.<br>
You will also see any lint errors in the console.
### `npm test`
Launches the test runner in the interactive watch mode.<br>
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
Builds the app for production to the `build` folder.<br>
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
### Analyzing the Bundle Size
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
### Making a Progressive Web App
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
### Advanced Configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
### Deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
### `npm run build` fails to minify
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

@ -0,0 +1,20 @@
{
"files": {
"main.css": "/SkillDisplay/static/css/main.af6b9f88.chunk.css",
"main.js": "/SkillDisplay/static/js/main.e1247fe5.chunk.js",
"main.js.map": "/SkillDisplay/static/js/main.e1247fe5.chunk.js.map",
"runtime-main.js": "/SkillDisplay/static/js/runtime-main.58acd0bf.js",
"runtime-main.js.map": "/SkillDisplay/static/js/runtime-main.58acd0bf.js.map",
"static/js/2.4d71e7f6.chunk.js": "/SkillDisplay/static/js/2.4d71e7f6.chunk.js",
"static/js/2.4d71e7f6.chunk.js.map": "/SkillDisplay/static/js/2.4d71e7f6.chunk.js.map",
"index.html": "/SkillDisplay/index.html",
"static/css/main.af6b9f88.chunk.css.map": "/SkillDisplay/static/css/main.af6b9f88.chunk.css.map",
"static/js/2.4d71e7f6.chunk.js.LICENSE.txt": "/SkillDisplay/static/js/2.4d71e7f6.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.58acd0bf.js",
"static/js/2.4d71e7f6.chunk.js",
"static/css/main.af6b9f88.chunk.css",
"static/js/main.e1247fe5.chunk.js"
]
}

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/SkillDisplay/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/SkillDisplay/manifest.json"/><title>Skill Display</title><link href="/SkillDisplay/static/css/main.af6b9f88.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,u,i=r[0],a=r[1],p=r[2],c=0,s=[];c<i.length;c++)u=i[c],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(f&&f(r);s.length;)s.shift()();return l.push.apply(l,p||[]),t()}function t(){for(var e,r=0;r<l.length;r++){for(var t=l[r],n=!0,i=1;i<t.length;i++){var a=t[i];0!==o[a]&&(n=!1)}n&&(l.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={1:0},l=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/SkillDisplay/";var i=this.webpackJsonpskilldisplay=this.webpackJsonpskilldisplay||[],a=i.push.bind(i);i.push=r,i=i.slice();for(var p=0;p<i.length;p++)r(i[p]);var f=a;t()}([])</script><script src="/SkillDisplay/static/js/2.4d71e7f6.chunk.js"></script><script src="/SkillDisplay/static/js/main.e1247fe5.chunk.js"></script></body></html>

12759
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -1,32 +0,0 @@
{
"name": "skilldisplay",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"homepage": "https://rawrington.github.io/skilldisplay/",
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}

@ -1,25 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>Skill Display</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>

@ -1,23 +0,0 @@
export default function listenActWebSocket(callback) {
const url = new URLSearchParams(window.location.search)
const wsUri = `${url.get('HOST_PORT')}BeforeLogLineRead` || undefined
const ws = new WebSocket(wsUri)
ws.onerror = () => listenActWebSocket()
ws.onmessage = function (e, m) { //PING
if (e.data === '.') return ws.send('.') //PONG
const obj = JSON.parse(e.data)
if(obj.msgtype === 'SendCharName')
{
console.log(obj.msg.charID)
console.log(obj.msg.charName)
return callback(obj.msg)
}
else if(obj.msgtype === 'Chat')
{
const code = obj.msg.substring(0, 2) //first 2 numbers POG
if(code === '21' || code === '22') return callback(obj.msg) //NetworkAbility or NetworkAoeAbility
}
}
}

@ -1,45 +0,0 @@
import React from 'react'
import './css/Action.css'
class Action extends React.Component {
state = {
xivapi_data: []
}
constructor(props) {
super(props);
const actionUrl = "https://xivapi.com/Action/"+props.action_id;
console.log(actionUrl)
fetch(actionUrl, { mode: 'cors' })
.then(response => response.json())
.then(data => {this.setState({xivapi_data: data})})
}
shouldComponentUpdate() {
if (Object.getOwnPropertyNames(this.state.xivapi_data).length === 0) {
return false
}
return true
}
isGCD() {
return (this.state.xivapi_data.ActionCategory.ID !== 4)
}
render() {
if(this.state.xivapi_data.Icon) {
const classes = this.isGCD()?'action-icon gcd':'action-icon ogcd'
const img = "https://xivapi.com"+this.state.xivapi_data.Icon
return <img className={classes} src={img} alt='' />
}
else
{
return null
}
}
}
export default Action

@ -1,81 +0,0 @@
import React from 'react'
import listenActWebSocket from './ACTWebsocket'
import './css/App.css'
import Action from './Action'
class App extends React.Component {
state = {
me: 0,
actionlist: [],
actionindex: 1
}
constructor(props) {
super(props)
listenActWebSocket(this.handleLogEvent.bind(this))
}
addActionToOverlay(action_id) {
this.setState((state) => {
const actionlist = state.actionlist.concat(action_id);
return {actionlist}
})
}
handleLogEvent(data) {
if(data.charID) {
this.setState({me: data.charID})
console.log(data.charID)
return
} //the ME data we need
const me = this.state.me
if(me === 0) return //we need data on the character first
let log = data.split('|')
if(parseInt(log[2],16) !== me) return //we only care about our actions
const action = parseInt(log[4],16)
if(action === 7) return //auto-attack
const index = this.state.actionindex
this.addActionToOverlay({index,action})
this.setState((state) => {
const actionindex = (state.actionindex >= 32)?1:state.actionindex+1
return {actionindex}
})
setTimeout(this.purgeAction.bind(this), 10000)
}
purgeAction() {
this.setState((state) => {
const actionlist = state.actionlist.slice(1)
return {actionlist}
})
}
render() {
let actions = []
console.log(this.state.actionlist)
for (const id in this.state.actionlist) {
const action = this.state.actionlist[id]
actions.push(<Action key={action.index} action_id={action.action} />)
}
return <div className="actions">{actions}</div>
}
}
export default App;

@ -1,25 +0,0 @@
.action-icon {
animation-duration: 10s;
animation-name: action-move;
animation-timing-function: linear;
animation-fill-mode: forwards;
position: absolute;
}
.gcd {
width: 3rem;
}
.ogcd {
width: 2rem;
}
@keyframes action-move {
from {
transform: translateX(calc(100vw - 3rem));
}
to {
transform: translateX(-3rem);
}
}

@ -1,17 +0,0 @@
.actions {
margin-top: 1em;
background: linear-gradient(180deg,
rgba(0,0,0,0) calc(50% - 1px),
rgba(255,255,255,1) calc(50%),
rgba(0,0,0,0) calc(50% + 1px)
);
height: 3em;
position: absolute;
top:0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}

@ -1,16 +0,0 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 16px;
}
html {
margin: 0;
height: 100vh;
overflow: hidden;
background-color: rgba(20, 20, 20, 0.3);
}

@ -1,12 +0,0 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './css/index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();

@ -1,135 +0,0 @@
// This optional code is used to register a service worker.
// register() is not called by default.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on subsequent visits to a page, after all the
// existing tabs open on the page have been closed, since previously cached
// resources are updated in the background.
// To learn more about the benefits of this model and instructions on how to
// opt-in, read https://bit.ly/CRA-PWA
const isLocalhost = Boolean(
window.location.hostname === 'localhost' ||
// [::1] is the IPv6 localhost address.
window.location.hostname === '[::1]' ||
// 127.0.0.1/8 is considered localhost for IPv4.
window.location.hostname.match(
/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
)
);
export function register(config) {
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
// The URL constructor is available in all browsers that support SW.
const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
if (publicUrl.origin !== window.location.origin) {
// Our service worker won't work if PUBLIC_URL is on a different origin
// from what our page is served on. This might happen if a CDN is used to
// serve assets; see https://github.com/facebook/create-react-app/issues/2374
return;
}
window.addEventListener('load', () => {
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
if (isLocalhost) {
// This is running on localhost. Let's check if a service worker still exists or not.
checkValidServiceWorker(swUrl, config);
// Add some additional logging to localhost, pointing developers to the
// service worker/PWA documentation.
navigator.serviceWorker.ready.then(() => {
console.log(
'This web app is being served cache-first by a service ' +
'worker. To learn more, visit https://bit.ly/CRA-PWA'
);
});
} else {
// Is not localhost. Just register service worker
registerValidSW(swUrl, config);
}
});
}
}
function registerValidSW(swUrl, config) {
navigator.serviceWorker
.register(swUrl)
.then(registration => {
registration.onupdatefound = () => {
const installingWorker = registration.installing;
if (installingWorker == null) {
return;
}
installingWorker.onstatechange = () => {
if (installingWorker.state === 'installed') {
if (navigator.serviceWorker.controller) {
// At this point, the updated precached content has been fetched,
// but the previous service worker will still serve the older
// content until all client tabs are closed.
console.log(
'New content is available and will be used when all ' +
'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
);
// Execute callback
if (config && config.onUpdate) {
config.onUpdate(registration);
}
} else {
// At this point, everything has been precached.
// It's the perfect time to display a
// "Content is cached for offline use." message.
console.log('Content is cached for offline use.');
// Execute callback
if (config && config.onSuccess) {
config.onSuccess(registration);
}
}
}
};
};
})
.catch(error => {
console.error('Error during service worker registration:', error);
});
}
function checkValidServiceWorker(swUrl, config) {
// Check if the service worker can be found. If it can't reload the page.
fetch(swUrl)
.then(response => {
// Ensure service worker exists, and that we really are getting a JS file.
const contentType = response.headers.get('content-type');
if (
response.status === 404 ||
(contentType != null && contentType.indexOf('javascript') === -1)
) {
// No service worker found. Probably a different app. Reload the page.
navigator.serviceWorker.ready.then(registration => {
registration.unregister().then(() => {
window.location.reload();
});
});
} else {
// Service worker found. Proceed as normal.
registerValidSW(swUrl, config);
}
})
.catch(() => {
console.log(
'No internet connection found. App is running in offline mode.'
);
});
}
export function unregister() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.ready.then(registration => {
registration.unregister();
});
}
}

@ -0,0 +1,2 @@
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px}html{height:100vh;overflow:hidden;background-image:none;background-repeat:no-repeat}.actions{padding-top:1rem;background:linear-gradient(180deg,transparent calc(25% - 1px),hsla(0,0%,100%,.5) 25%,transparent calc(25% + 1px),transparent calc(50% - 1px),hsla(0,0%,100%,.5) 50%,transparent calc(50% + 1px),transparent calc(75% - 1px),hsla(0,0%,100%,.5) 75%,transparent calc(75% + 1px));height:3rem;padding-bottom:1rem;background-color:rgba(20,20,20,.3);display:inline-block}.container{display:flex;flex-direction:column}.action-move{-webkit-animation-duration:10s;animation-duration:10s;-webkit-animation-name:action-move;animation-name:action-move;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;position:absolute}.gcd{width:3rem}.gcd,.ogcd{vertical-align:top}.ogcd{width:2rem}.action-rotation.gcd{margin-left:1em}.action-rotation.gcd:before{content:"\25B6";font-size:13px;color:hsla(0,0%,100%,.5)}@-webkit-keyframes action-move{0%{transform:translateX(calc(100vw - 3rem))}to{transform:translateX(-3rem)}}@keyframes action-move{0%{transform:translateX(calc(100vw - 3rem))}to{transform:translateX(-3rem)}}.rotation-list{padding:0 18px;background-color:rgba(80,80,80,.3);display:block}.rotation-button{background-color:hsla(0,0%,39.2%,.3);color:hsla(0,0%,100%,.5);padding:.1em;width:100vw;border:none;outline:none;transition:.4s;display:block}.rotation-button.expanded,.rotation-button:hover{background-color:hsla(0,0%,47.1%,.3)}.rotation-button:after{content:"\25BC";font-size:13px;color:#777;float:right;margin-left:5px}.rotation-button.expanded:after{content:"\25B2"}
/*# sourceMappingURL=main.af6b9f88.chunk.css.map */

@ -0,0 +1 @@
{"version":3,"sources":["webpack://src/css/App.css","webpack://src/css/Action.css","webpack://src/css/Rotation.css"],"names":[],"mappings":"AAAA,KACC,QAAS,CACT,mJAEW,CACX,kCAAmC,CACnC,iCAAkC,CAClC,cACD,CAEA,KACC,YAAa,CACb,eAAgB,CAChB,qBAAsB,CACtB,2BACD,CAEA,SACC,gBAAiB,CACjB,+QAUI,CACJ,WAAY,CACZ,mBAAoB,CACpB,kCAAuC,CACvC,oBACD,CAEA,WACC,YAAa,CACb,qBACD,CCvCA,aACC,8BAAuB,CAAvB,sBAAuB,CACvB,kCAA2B,CAA3B,0BAA2B,CAC3B,wCAAiC,CAAjC,gCAAiC,CACjC,oCAA6B,CAA7B,4BAA6B,CAC7B,iBACD,CAEA,KACC,UAED,CAEA,WAHC,kBAMD,CAHA,MACC,UAED,CAEA,qBACC,eACD,CAEA,4BACC,eAAgB,CAChB,cAAe,CACf,wBACD,CAEA,+BACC,GACC,wCACD,CAEA,GACC,2BACD,CACD,CARA,uBACC,GACC,wCACD,CAEA,GACC,2BACD,CACD,CCpCA,eACC,cAAe,CACf,kCAAuC,CACvC,aACD,CAEA,iBACC,oCAA0C,CAC1C,wBAA+B,CAC/B,YAAc,CACd,WAAY,CACZ,WAAY,CACZ,YAAa,CACb,cAAgB,CAChB,aACD,CAEA,iDACC,oCACD,CAEA,uBACC,eAAgB,CAChB,cAAe,CACf,UAAuB,CACvB,WAAY,CACZ,eACD,CAEA,gCACC,eACD","file":"main.af6b9f88.chunk.css","sourcesContent":["body {\n\tmargin: 0;\n\tfont-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\",\n\t\t\"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n\t\tsans-serif;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n\tfont-size: 16px;\n}\n\nhtml {\n\theight: 100vh;\n\toverflow: hidden;\n\tbackground-image: none;\n\tbackground-repeat: no-repeat;\n}\n\n.actions {\n\tpadding-top: 1rem;\n\tbackground: linear-gradient(180deg, \n\t\trgba(0,0,0,0) calc(25% - 1px), \n rgba(255,255,255,0.5) calc(25%), \n rgba(0,0,0,0) calc(25% + 1px),\n rgba(0,0,0,0) calc(50% - 1px), \n rgba(255,255,255,0.5) calc(50%), \n rgba(0,0,0,0) calc(50% + 1px),\n\t\trgba(0,0,0,0) calc(75% - 1px), \n rgba(255,255,255,0.5) calc(75%), \n rgba(0,0,0,0) calc(75% + 1px)\n );\n\theight: 3rem;\n\tpadding-bottom: 1rem;\n\tbackground-color: rgba(20, 20, 20, 0.3);\n\tdisplay: inline-block;\n}\n\n.container {\n\tdisplay: flex;\n\tflex-direction: column;\n}",".action-move {\n\tanimation-duration: 10s;\n\tanimation-name: action-move;\n\tanimation-timing-function: linear;\n\tanimation-fill-mode: forwards;\n\tposition: absolute;\n}\n\n.gcd {\n\twidth: 3rem;\n\tvertical-align: top;\n}\n\n.ogcd {\n\twidth: 2rem;\n\tvertical-align: top;\n}\n\n.action-rotation.gcd {\n\tmargin-left: 1em;\n}\n\n.action-rotation.gcd::before {\n\tcontent: '\\25B6'; /* Unicode character for right arrow */\n\tfont-size: 13px;\n\tcolor: rgba(255, 255, 255, 0.5);\n}\n\n@keyframes action-move {\n\tfrom {\n\t\ttransform: translateX(calc(100vw - 3rem));\n\t}\n \n\tto {\n\t\ttransform: translateX(-3rem);\n\t}\n}",".rotation-list {\n\tpadding: 0 18px;\n\tbackground-color: rgba(80, 80, 80, 0.3);\n\tdisplay: block;\n}\n\n.rotation-button {\n\tbackground-color: rgba(100, 100, 100, 0.3);\n\tcolor: rgba(255, 255, 255, 0.5);\n\tpadding: 0.1em;\n\twidth: 100vw;\n\tborder: none;\n\toutline: none;\n\ttransition: 0.4s;\n\tdisplay: block;\n}\n\n.rotation-button.expanded, .rotation-button:hover {\n\tbackground-color: rgba(120, 120, 120, 0.3);\n}\n\n.rotation-button:after {\n\tcontent: '\\25BC';\n\tfont-size: 13px;\n\tcolor: rgb(119,119,119);\n\tfloat: right;\n\tmargin-left: 5px;\n}\n\n.rotation-button.expanded:after {\n\tcontent: \"\\25B2\";\n}"]}

File diff suppressed because one or more lines are too long

@ -0,0 +1,41 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/** @license React v0.20.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.1
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.1
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

File diff suppressed because one or more lines are too long

@ -0,0 +1,2 @@
(this.webpackJsonpskilldisplay=this.webpackJsonpskilldisplay||[]).push([[0],{15:function(n,t,e){},17:function(n,t,e){},18:function(n,t,e){},19:function(n,t,e){"use strict";e.r(t);var a=e(0),o=e(1),c=e.n(o),r=e(4),i=e.n(r),s=e(2),u=e(8),d=function(){return/[?&]HOST_PORT=(wss?:\/\/[^&/]+)/.exec(window.location.search)};function f(n){return d()?l(n):function(n){var t=function(t){n.apply(void 0,Object(u.a)(t.detail))};return document.addEventListener("onLogLine",t),function(){document.removeEventListener("onLogLine",t)}}(n)}function l(n){var t="".concat(d()[1],"/BeforeLogLineRead")||!1,e=new WebSocket(t);return e.onerror=function(){return e.close()},e.onclose=function(){return setTimeout((function(){l(n)}),1e3)},e.onmessage=function(t,a){if("."===t.data)return e.send(".");var o=JSON.parse(t.data);return"SendCharName"===o.msgtype?n(o.msg):"Chat"===o.msgtype?n.apply(void 0,Object(u.a)(o.msg.split("|"))):void 0},function(){e.close()}}e(15);var v=e(7),m=e.n(v),p=e(9),j=(e(17),new Set([15997,15998,15999,16e3,16001,16002,16003,16004,16191,16192,16193,16194,16195,16196,7418,16484,16485,16486,2259,18805,2261,18806,2263,18807,2265,18873,18874,18875,2267,18877,2266,18876,2268,18878,16492,16471,16491,2270,18880,2269,18879,2271,18881,2272])),h=new Set([3559,116,114]),b=new Map;function g(n){var t=n.actionId,e=n.additionalClasses,o=c.a.useState(),r=Object(s.a)(o,2),i=r[0],u=r[1];return c.a.useEffect((function(){var n=b.get(t);if(null==n){var e=!0;return Object(p.a)(m.a.mark((function n(){var a;return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,fetch("https://xivapi.com/Action/".concat(t,"?columns=Icon,Name,ActionCategoryTargetID"),{mode:"cors"});case 2:return n.next=4,n.sent.json();case 4:a=n.sent,e&&(b.set(t,a),u(a));case 6:case"end":return n.stop()}}),n)})))(),function(){e=!1}}u(n)}),[t]),void 0!==i&&i.Icon?Object(a.jsx)("img",{className:j.has(t)||!h.has(t)&&4!==i.ActionCategoryTargetID?"gcd ".concat(e):"ogcd ".concat(e),src:"https://xivapi.com/".concat(i.Icon),alt:i.Name||""}):null}e(18);function O(n){var t=n.encounterId,e=n.name,o=n.actionList,r=c.a.useState(!1),i=Object(s.a)(r,2),u=i[0],d=i[1];return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)("button",{className:u?"rotation-button expanded":"rotation-button",onClick:function(){d((function(n){return!n}))},children:0===t?"Current Rotation":e}),Object(a.jsx)(x,{expanded:u,actionList:o})]})}function x(n){var t=n.expanded,e=n.actionList;return t?Object(a.jsx)("div",{className:"rotation-list",children:e.map((function(n,t){return Object(a.jsx)(g,{actionId:n,additionalClasses:"action-rotation"},t)}))}):null}var w=new Set(["00","01","02","21","22","33"]);function I(){var n=c.a.useState([]),t=Object(s.a)(n,2),e=t[0],o=t[1],r=c.a.useState([]),u=Object(s.a)(r,2),d=u[0],l=u[1];return c.a.useEffect((function(){var n,t="",e=-1,a="Unknown",c=1,r=f((function(){for(var r=function(){l((function(n){return n[0]&&n[0].rotation&&n[0].rotation.length<=0&&n.shift(),n.unshift({name:a,rotation:[]}),n.slice(0,3)}))},s=arguments.length,u=new Array(s),d=0;d<s;d++)u[d]=arguments[d];if(1===u.length&&u[0].charID)return n=u[0].charID,void r();var f=u[0],v=u[1],m=u[2],p=u[3],j=u[4];if(w.has(f)){switch(f){case"00":return void("0038"===m&&"end"===j&&r());case"01":return void(a=p);case"02":return n=parseInt(m,16),void r();case"33":return void("40000012"!==p&&"40000010"!==p||r())}if(void 0!==n&&parseInt(m,16)===n){var h=parseInt(j,16);if(!((h<9||h>3e4)&&(h<100001||h>100300)||v===t&&h===e)){Date.now()-Date.parse(t)>12e4&&r(),t=v,e=h;var b=c%256+1;c=b,i.a.unstable_batchedUpdates((function(){o((function(n){return n.concat({action:h,key:b})})),l((function(n){return n[0]||(n[0]={name:a,rotation:[]}),n[0].rotation.push(h),n}))})),setTimeout((function(){o((function(n){return n.slice(1)}))}),1e4)}}}}));return function(){r()}}),[]),Object(a.jsx)(a.Fragment,{children:Object(a.jsxs)("div",{className:"container",children:[Object(a.jsx)("div",{className:"actions",children:e.map((function(n){var t=n.action,e=n.key;return Object(a.jsx)(g,{actionId:t,additionalClasses:"action-move"},e)}))}),d.map((function(n,t){return Object(a.jsx)(O,{encounterId:t,name:n.name,actionList:n.rotation},t)}))]})})}i.a.render(Object(a.jsx)(I,{}),document.getElementById("root"))}},[[19,1,2]]]);
//# sourceMappingURL=main.e1247fe5.chunk.js.map

File diff suppressed because one or more lines are too long

@ -0,0 +1,2 @@
!function(e){function r(r){for(var n,u,i=r[0],a=r[1],p=r[2],c=0,s=[];c<i.length;c++)u=i[c],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(f&&f(r);s.length;)s.shift()();return l.push.apply(l,p||[]),t()}function t(){for(var e,r=0;r<l.length;r++){for(var t=l[r],n=!0,i=1;i<t.length;i++){var a=t[i];0!==o[a]&&(n=!1)}n&&(l.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={1:0},l=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/SkillDisplay/";var i=this.webpackJsonpskilldisplay=this.webpackJsonpskilldisplay||[],a=i.push.bind(i);i.push=r,i=i.slice();for(var p=0;p<i.length;p++)r(i[p]);var f=a;t()}([]);
//# sourceMappingURL=runtime-main.58acd0bf.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save