This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from conix-center/record-crud-ui
Merge in UI baseline for Atlas
- Loading branch information
Showing
16 changed files
with
351 additions
and
96 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 @@ | ||
*.swp |
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,46 @@ | ||
/*TODO: combine styles that are the same but for diff elements */ | ||
|
||
body { | ||
color: white; | ||
background-color: #133926; | ||
font-family: "Lucida Console", Monaco, monospace; | ||
} | ||
|
||
h1 { | ||
color: black; | ||
background-color: #8dd8b4; | ||
} | ||
|
||
a:link { | ||
color: #ff0000; | ||
} | ||
|
||
a:visited { | ||
color: #ff0000; | ||
} | ||
|
||
button { | ||
background-color: #0d261a; | ||
text-decoration: underline; | ||
color: #ff0000; | ||
} | ||
|
||
form { | ||
background-color: #0d261a; | ||
} | ||
|
||
input[type=submit] { | ||
background-color: #0d261a; | ||
text-decoration: underline; | ||
color: #ff0000; | ||
} | ||
|
||
input { | ||
background-color: black; | ||
color: #00ff00; | ||
} | ||
|
||
select { | ||
background-color: black; | ||
color: #00ff00; | ||
} |
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
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
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
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,44 @@ | ||
<!-- | ||
Periodically revisit validation needs for this form. See: | ||
https://github.com/conix-center/ATLAS/issues/1 | ||
--> | ||
|
||
<a href="/">ATLAS Home</a> <a>/</a> <a>Create Record Form</a> <a>></a> | ||
|
||
<h1> | ||
Create New ATLAS Record | ||
</h1> | ||
|
||
<h2> | ||
Please fill out this form and submit: | ||
</h2> | ||
|
||
<form action="/record/create"> | ||
UUID: | ||
<br/> | ||
<input type="text" name="uuid" id="get_uuid_dst" placeholder="REQUIRED!" required> | ||
<!--FIXME: <button type="Button" onclick="getElementById('get_uuid_dst').innerHTML = sails.uuidv4();">Get UUID</button>--> | ||
<br/> | ||
<br/> | ||
URL: | ||
<br/> | ||
<input type="text" name="url"> | ||
<br/> | ||
<br/> | ||
Latitude: | ||
<br/> | ||
<input type="text" name="lat"> | ||
<br/> | ||
<br/> | ||
Longitude: | ||
<br/> | ||
<input type="text" name="lon"> | ||
<br/> | ||
<br/> | ||
Elevation: | ||
<br/> | ||
<input type="text" name="ele"> | ||
<br/> | ||
<br/> | ||
<input type="submit" value="submit"> | ||
</form> |
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- | ||
Periodically revisit validation/sanitation needs for this form. See: | ||
https://github.com/conix-center/ATLAS/issues/1 | ||
--> | ||
|
||
<a href="/">ATLAS Home</a> <a>/</a> <a>Advanced Search Records</a> <a>></a> | ||
|
||
<h1> | ||
Advanced Search ATLAS Records | ||
</h1> | ||
|
||
<h2> | ||
Please enter valid Waterline query language: | ||
</h2> | ||
|
||
<form action="/record"> | ||
<a href="https://sailsjs.com/documentation/reference/blueprint-api/find-where"> | ||
find API & where clause reference | ||
</a> | ||
<br/> | ||
where: | ||
<br/> | ||
<!-- TODO: ltj: add more helpful example, like: '{"url":{"contains":"espn"}}' | ||
this probably includes making input size to window... --> | ||
<input type="text" name="where" placeholder="JSON" required> | ||
<br/> | ||
<br/> | ||
<input type="submit" value="submit"> | ||
<!-- TODO: ltj: add sorting/pagination fields.. --> | ||
</form> |
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,6 @@ | ||
#!/bin/bash | ||
|
||
#ltj: adds a few entries to db using default Sails devenv host info | ||
curl 'http://localhost:1337/record/create?uuid=356a5dcd-9d22-4cde-85b0-1942b20f05e7&url=ltsyrealjones.com' | ||
|
||
curl 'http://localhost:1337/record/create?uuid=db3c47f1-21d9-4eb7-99fc-a8b199ebcf8a&url=www.espn.com' |
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,25 @@ | ||
<html> | ||
<body> | ||
<!-- ltj: I'm not sure how transferable this is to a Sails app --> | ||
<h1>Create *New* ATLAS Record</h1> | ||
|
||
<form> | ||
UUID:<br> | ||
<input type="text" name="uuid"><br> | ||
<br> | ||
URL:<br> | ||
<input type="text" name="url"><br> | ||
<br> | ||
Latitude:<br> | ||
<input type="text" name="lat"><br> | ||
<br> | ||
Longitude:<br> | ||
<input type="text" name="lon"><br> | ||
<br> | ||
Elevation:<br> | ||
<input type="text" name="ele"><br> | ||
<br> | ||
<input type="submit" value="submit"> | ||
</form> | ||
</body> | ||
</html> |
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,6 @@ | ||
<html> | ||
<body> | ||
Hello world! | ||
<!-- yeah, not really a UI, this is mostly just to get a commit on my new branch --> | ||
</body> | ||
</html> |