forked from VCG/vimo-sketches
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
53,502 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
REACT_APP_API_PROTOCOL=http | ||
REACT_APP_WS_PROTOCOL=ws | ||
REACT_APP_API_URL=localhost:4242 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
REACT_APP_API_PROTOCOL=https | ||
REACT_APP_WS_PROTOCOL=wss | ||
REACT_APP_API_URL=vimo-server-3jagpvnfya-uc.a.run.app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# 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* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# vimo-sketches | ||
A React component of the Vimo Sketching interface. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = function (api) { | ||
api.cache(true); | ||
|
||
const presets = ['@babel/preset-env', '@babel/preset-react']; | ||
const plugins = ['macros']; | ||
|
||
return { | ||
presets, | ||
plugins, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _Banner = _interopRequireDefault(require("./components/Banner")); | ||
var _PanelView = _interopRequireDefault(require("./views/PanelView")); | ||
var _GlobalContext = require("./contexts/GlobalContext"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function Sketch(props) { | ||
// Wrap things in context that can use global context | ||
var token = props.token; | ||
return /*#__PURE__*/_react.default.createElement(_GlobalContext.ContextWrapper, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Banner.default, null), /*#__PURE__*/_react.default.createElement(_PanelView.default, { | ||
token: token | ||
}))) | ||
// <span>testtesttest</span> | ||
; | ||
} | ||
var _default = Sketch; | ||
exports.default = _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#loadingBar { | ||
position: absolute; | ||
top: 0px; | ||
right: 0px; | ||
width: 100vw; | ||
} | ||
|
||
#errorBar { | ||
position: absolute; | ||
top: 0px; | ||
left: 0px; | ||
width: 100vw; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
"use strict"; | ||
|
||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
var _react = _interopRequireWildcard(require("react")); | ||
require("./Banner.css"); | ||
var _GlobalContext = require("../contexts/GlobalContext"); | ||
var _material = require("@mui/material"); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function Banner() { | ||
var context = (0, _react.useContext)(_GlobalContext.AppContext); | ||
var loadingId = "loadingBar"; | ||
var errorId = "errorBar"; | ||
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", { | ||
id: errorId | ||
}, context.errorMessage && /*#__PURE__*/_react.default.createElement(_material.Alert, { | ||
severity: "error" | ||
}, context.errorMessage)), /*#__PURE__*/_react.default.createElement("div", { | ||
id: loadingId | ||
}, context.loadingMessage && /*#__PURE__*/_react.default.createElement(_material.Grid, { | ||
container: true, | ||
direction: "column", | ||
justifyContent: "flex-start", | ||
alignItems: "stretch" | ||
}, /*#__PURE__*/_react.default.createElement(_material.Grid, { | ||
item: true | ||
}, /*#__PURE__*/_react.default.createElement(_material.LinearProgress, null)), /*#__PURE__*/_react.default.createElement(_material.Grid, { | ||
item: true, | ||
style: { | ||
alignContent: "flex-end", | ||
textAlign: "right", | ||
paddingRight: "5px" | ||
} | ||
}, /*#__PURE__*/_react.default.createElement("span", null, context.loadingMessage))))); | ||
} | ||
var _default = Banner; | ||
exports.default = _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/*hint style*/ | ||
.hint { | ||
display: flex; | ||
flex-direction: column; | ||
width: inherit; | ||
color: #a4a4a4; | ||
align-items: center; | ||
margin: 5px 5px 0 5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
var _material = require("@mui/material"); | ||
var _react = _interopRequireDefault(require("react")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function InfoButton(props) { | ||
return /*#__PURE__*/_react.default.createElement(_material.Fab, { | ||
hidden: props.hidden, | ||
variant: "extended", | ||
size: "small", | ||
disabled: props.disabled, | ||
color: props.color, | ||
sx: { | ||
ml: "0.5rem", | ||
mb: "0.7rem" | ||
} | ||
}, props.icon, props.disabled ? "" : props.text); | ||
} | ||
var _default = InfoButton; | ||
exports.default = _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
#motif-panel-div { | ||
position: absolute; | ||
top: 5vh; | ||
left: 1vw; | ||
max-width: 500px; | ||
width: 29vw; | ||
margin: 20px; | ||
padding: 0; | ||
/*max-height: 86vh;*/ | ||
} | ||
|
||
|
||
#motif-panel-div .form { | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
padding: 5px; | ||
background-color: rgba(255, 255, 255, 0.5); | ||
/*border-radius: 10px;*/ | ||
/*box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;*/ | ||
z-index: 2; | ||
max-height: inherit; | ||
} | ||
|
||
#motif-panel-div .motif-selection-div { | ||
cursor: pointer; | ||
} | ||
|
||
#motif-panel-div .motif-selection-div:hover { | ||
background-color: #e7e7e7; | ||
} | ||
|
||
/*#motif-panel-div .results {*/ | ||
/* position: relative;*/ | ||
/* margin-top: 1px;*/ | ||
/* padding: 0px;*/ | ||
/* border-radius: 0 0 10px 10px;*/ | ||
/* !*box-shadow: 0px 5px 10px 5px rgb(0 0 0 / 15%);*!*/ | ||
/* background-color: rgba(255, 255, 255, 0.5);*/ | ||
/* width: inherit;*/ | ||
/* height: 100%;*/ | ||
/* max-height: 50vh;*/ | ||
/* overflow-y: scroll;*/ | ||
/* z-index: 1;*/ | ||
/*}*/ | ||
|
||
/*#motif-panel-div .results .textContainer {*/ | ||
/* display: block;*/ | ||
/* white-space: nowrap;*/ | ||
/* overflow: scroll;*/ | ||
/* text-overflow: ellipsis;*/ | ||
/*}*/ | ||
|
||
|
||
/*#motif-panel-div .results .row-0 {*/ | ||
/* border-top: 3px solid black;*/ | ||
/*}*/ | ||
|
||
|
||
#motif-panel-wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
width: inherit; | ||
/*align-items: center;*/ | ||
/*margin: 5px 5px 0 5px;*/ | ||
|
||
} | ||
|
||
.handle { | ||
position: relative; | ||
top: 5px; | ||
left: 5px; | ||
} | ||
|
||
.formRow { | ||
float: left; | ||
} | ||
|
||
#motif-panel-div .result-section { | ||
position: relative; | ||
width: inherit; | ||
max-height: inherit; | ||
overflow-y: auto; | ||
} | ||
|
||
.sketch-panel-options-style { | ||
float: left; | ||
clear: left; | ||
margin-top: 10px; | ||
margin-left: 20px; | ||
} | ||
|
||
.formColumn { | ||
flex-grow: 1; | ||
display: flex; | ||
justify-content: left; | ||
align-items: center; | ||
margin: 0 10px; | ||
} | ||
|
||
/*.buttonDiv {*/ | ||
/* height: inherit;*/ | ||
/* align-self: flex-end;*/ | ||
/*}*/ |
Oops, something went wrong.