Commit 30632898 authored by Kim Mortimer's avatar Kim Mortimer
Browse files

Add initial batch of files from previous private repository, with elements...

Add initial batch of files from previous private repository, with elements redacted in multiple areas.
parent 68c6382f
# Created by https://www.gitignore.io
### OSX ###
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml
# Translations
*.mo
*.pot
# Sphinx documentation
docs/_build/
# PyBuilder
target/
### Django ###
*.log
*.pot
*.pyc
__pycache__/
local_settings.py
.env
db.sqlite3
### Start Node ignore ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
*.zip
node_modules
# Editor swapfiles (Nano)
*.swp
# MERIDIAN-Beta-Catalog-Service-Public
# MERIDIAN Catalog Service
The public release of the MERIDIAN catalog service beta. Keys, paswords, and logos have been removed.
\ No newline at end of file
The beta release of the MERIDIAN catalog service (Submission form and discovery portal). Keys and passwords have been removed.
## Setup
This project uses Python 3. To run the project you'll need Django in your python env and run:
```python manage.py runserver```
## Overview
Everything is in the frontend folder. I use gitlab issue to track what needs to be done and create a branch for each issue.
## Operating
Needs both the Yarn elements (from the FORM folder) and the django to be running.
Visit localhost / 127.0.0.1 port 8080 once everything is running
-> http://127.0.0.1:8080
\ No newline at end of file
This diff is collapsed.
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
# form
## Project setup
```
yarn install
```
### Compiles and hot-reloads for development
```
yarn run serve
```
### Compiles and minifies for production
```
yarn run build
```
### Run your tests
```
yarn run test
```
### Lints and fixes files
```
yarn run lint
```
(Can be useful if there are hangs or issues with deployment or compilation.)
Visit localhost / 127.0.0.1 port 8080 once this and the Django are running
-> http://127.0.0.1:8080
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
module.exports = {
presets: [
'@vue/app'
]
}
This diff is collapsed.
{
"name": "form",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.19.0",
"leaflet-draw": "^1.0.4",
"lodash": "^4.17.11",
"node-sass": "^4.12.0",
"portal-vue": "^1.5.1",
"sass-loader": "^7.1.0",
"semantic-ui-vue": "^0.7.0",
"vue": "^2.5.22",
"vue-resource": "^1.5.1",
"vue-timeselector": "^0.1.5",
"vue2-leaflet": "^1.2.3",
"vuejs-datepicker": "^1.5.4"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.4.0",
"@vue/cli-plugin-eslint": "^3.4.0",
"@vue/cli-service": "^3.4.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.8.0",
"eslint-plugin-vue": "^5.0.0",
"vue-template-compiler": "^2.5.21"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
}
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="stylesheet" href="semantic/semantic.min.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" />
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Old+Standard+TT:400,400i,700,700i|Open+Sans+Condensed:300|Lato:700&amp;subset=latin,latin-ext" type="text/css" media="all" data-x-google-fonts="">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Old+Standard+TT:400,700|Open+Sans+Condensed:300,700" type="text/css" media="all" data-x-google-fonts="">
<title>MERIDIAN Submission Form</title>
<script>
window.onload=(function(){
var isIE = false;
var isNotIE = true;
var ua = window.navigator.userAgent;
var old_ie = ua.indexOf('MSIE ');
var new_ie = ua.indexOf('Trident/');
if ((old_ie > -1) || (new_ie > -1)) {
isIE = true;
isNotIE = false;
} else {
document.getElementById('IEWarn').style.height = '0px';
};
});
</script>
</head>
<body>
<noscript>
<strong>This form requires JavaScript. Enable JavaScript to continue.</strong>
</noscript>
<div id="IEWarn" v-if="isIE">Warning: This form is not compatible with Internet Explorer. Please switch to a modern browser, such as Edge, Firefox, or Chrome, to continue using this form. Thank you. </div>
<div id="ResolutionWarn">Warning: This form behaves poorly with a screen width below 800px, for example on phones. As such, submission is prevented. Apologies for any inconvenience this may cause. </div>
<div id="app" v-if="isNotIE"></div>
<!-- built files will be auto injected -->
</body>
</html>
<style>
.navbar{
height: 76px;
box-shadow: 0 2px 3px rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.1);
text-align: center;
padding-left: 22vw;
line-height:1.5em;
background-color: white;
position: fixed;
top:0px;
z-index: 1000;
font-weight: 400;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
width:100%;
}
.navbar-brand{
font-family: 'Old Standard TT','Helvetica Neue',Arial,Helvetica,sans-serif;
font-size: 14px;
color: rgba(0,0,0,.87);
text-align: center;
box-sizing: inherit;
align-items: stretch;
display: flex;
flex-shrink: 0;
}
.navbar-menu{
align-items: stretch;
display: flex;
flex-grow: 1;
flex-shrink: 0;
}
.navbar-start{
justify-content: flex-start;
margin-right: auto;
align-items: stretch;
display: flex;
}
.navbar-item{
cursor: pointer;
display: flex;
align-items: center;
flex-grow: 0;
flex-shrink: 0;
color: #4a4a4a;
line-height: 1.5;
position: relative;
padding: 38px 3vw 11px 3vw;
font-size: 13pt;
text-transform: uppercase;
font-family: 'Open Sans Condensed', sans-serif;
}
.navbar-item:hover{
background-color: #fafafa;
color: #3273dc;
}
</style>
/*!
* # Semantic UI 2.4.2 - Accordion
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*******************************
Accordion
*******************************/
.ui.accordion,
.ui.accordion .accordion {
max-width: 100%;
}
.ui.accordion .accordion {
margin: 1em 0em 0em;
padding: 0em;
}
/* Title */
.ui.accordion .title,
.ui.accordion .accordion .title {
cursor: pointer;
}
/* Default Styling */
.ui.accordion .title:not(.ui) {
padding: 0.5em 0em;
font-family: 'Open Sans Condensed', sans-serif;
font-size: 1em;
color: rgba(0, 0, 0, 0.87);
}
/* Content */
.ui.accordion .title ~ .content,
.ui.accordion .accordion .title ~ .content {
display: none;
}
/* Default Styling */
.ui.accordion:not(.styled) .title ~ .content:not(.ui),
.ui.accordion:not(.styled) .accordion .title ~ .content:not(.ui) {
margin: '';
padding: 0.5em 0em 1em;
}
.ui.accordion:not(.styled) .title ~ .content:not(.ui):last-child {
padding-bottom: 0em;
}
/* Arrow */
.ui.accordion .title .dropdown.icon,
.ui.accordion .accordion .title .dropdown.icon {
display: inline-block;
float: none;
opacity: 1;
width: 1.25em;
height: 1em;
margin: 0em 0.25rem 0em 0rem;
padding: 0em;
font-size: 1em;
-webkit-transition: opacity 0.1s ease, -webkit-transform 0.1s ease;
transition: opacity 0.1s ease, -webkit-transform 0.1s ease;
transition: transform 0.1s ease, opacity 0.1s ease;
transition: transform 0.1s ease, opacity 0.1s ease, -webkit-transform 0.1s ease;
vertical-align: baseline;
-webkit-transform: none;
transform: none;
}
/*--------------
Coupling
---------------*/
/* Menu */
.ui.accordion.menu .item .title {
display: block;
padding: 0em;
}
.ui.accordion.menu .item .title > .dropdown.icon {
float: right;
margin: 0.21425em 0em 0em 1em;
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
/* Header */
.ui.accordion .ui.header .dropdown.icon {
font-size: 1em;
margin: 0em 0.25rem 0em 0rem;
}
/*******************************
States
*******************************/
.ui.accordion .active.title .dropdown.icon,
.ui.accordion .accordion .active.title .dropdown.icon {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.ui.accordion.menu .item .active.title > .dropdown.icon {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
/*******************************
Types
*******************************/
/*--------------
Styled
---------------*/
.ui.styled.accordion {
width: 600px;
}
.ui.styled.accordion,
.ui.styled.accordion .accordion {
border-radius: 0px;
background: #FFFFFF;
-webkit-box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15), 0px 0px 0px 1px rgba(34, 36, 38, 0.15);
box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15), 0px 0px 0px 1px rgba(34, 36, 38, 0.15);
}
.ui.styled.accordion .title,
.ui.styled.accordion .accordion .title {
margin: 0em;
padding: 0.75em 1em;
color: rgba(0, 0, 0, 0.4);
font-weight: bold;
border-top: 1px solid rgba(34, 36, 38, 0.15);
-webkit-transition: background 0.1s ease, color 0.1s ease;
transition: background 0.1s ease, color 0.1s ease;
}
.ui.styled.accordion > .title:first-child,
.ui.styled.accordion .accordion .title:first-child {
border-top: none;
}
/* Content */
.ui.styled.accordion .content,
.ui.styled.accordion .accordion .content {
margin: 0em;
padding: 0.5em 1em 1.5em;
}
.ui.styled.accordion .accordion .content {
padding: 0em;
padding: 0.5em 1em 1.5em;
}
/* Hover */
.ui.styled.accordion .title:hover,
.ui.styled.accordion .active.title,
.ui.styled.accordion .accordion .title:hover,
.ui.styled.accordion .accordion .active.title {
background: transparent;
color: rgba(0, 0, 0, 0.87);
}
.ui.styled.accordion .accordion .title:hover,
.ui.styled.accordion .accordion .active.title {
background: transparent;
color: rgba(0, 0, 0, 0.87);
}
/* Active */
.ui.styled.accordion .active.title {
background: transparent;
color: rgba(0, 0, 0, 0.95);
}
.ui.styled.accordion .accordion .active.title {
background: transparent;
color: rgba(0, 0, 0, 0.95);
}
/*******************************