Skip to content

Commit

Permalink
Prettied everything
Browse files Browse the repository at this point in the history
  • Loading branch information
shivensinha4 committed May 18, 2019
1 parent 003ada4 commit 9969344
Show file tree
Hide file tree
Showing 13 changed files with 630 additions and 698 deletions.
4 changes: 2 additions & 2 deletions .babelrc
Expand Up @@ -7,5 +7,5 @@
}
]
],
"plugins": [ "istanbul" ]
}
"plugins": ["istanbul"]
}
10 changes: 5 additions & 5 deletions .codacy.yml
@@ -1,6 +1,6 @@
exclude_paths:
- 'tests/**'
- 'jasmine/**'
- 'dist/**'
- 'karma.conf.js'
- 'CODE_OF_CONDUCT.md'
- "tests/**"
- "jasmine/**"
- "dist/**"
- "karma.conf.js"
- "CODE_OF_CONDUCT.md"
481 changes: 137 additions & 344 deletions .idea/workspace.xml

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions .travis.yml
@@ -1,15 +1,15 @@
language: node_js
node_js:
- "stable"
- "stable"
dist: trusty
sudo: required
addons:
chrome: stable
cache:
yarn: true
directories:
- node_modules
- node_modules
install:
- yarn
- yarn
script:
- yarn test
- yarn test
17 changes: 10 additions & 7 deletions SpecRunner.html
@@ -1,11 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<head>
<meta charset="utf-8" />
<title>Jasmine Spec Runner v3.2.1</title>

<link rel="shortcut icon" type="image/png" href="jasmine/lib/jasmine-3.2.1/jasmine_favicon.png">
<link rel="stylesheet" href="jasmine/lib/jasmine-3.2.1/jasmine.css">
<link
rel="shortcut icon"
type="image/png"
href="jasmine/lib/jasmine-3.2.1/jasmine_favicon.png"
/>
<link rel="stylesheet" href="jasmine/lib/jasmine-3.2.1/jasmine.css" />

<script src="jasmine/lib/jasmine-3.2.1/jasmine.js"></script>
<script src="jasmine/lib/jasmine-3.2.1/jasmine-html.js"></script>
Expand All @@ -20,7 +24,6 @@
<!-- spec files -->
<script src="tests/read.js"></script>
<script src="tests/append.js"></script>
</head>
<body>
</body>
</head>
<body></body>
</html>
37 changes: 21 additions & 16 deletions example/blog.html
@@ -1,22 +1,27 @@
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="container my-5" data-stein-url="http://localhost:8080/v1/storages/5be5fa57e10a8b38ac96f582/Sheet1">
<div class="mb-4">
<head>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div
class="container my-5"
data-stein-url="http://localhost:8080/v1/storages/5be5fa57e10a8b38ac96f582/Sheet1"
>
<div class="mb-4">
<h1>{{title}}</h1>
<h6 class="text-secondary">By {{author}}</h6>
<p class="lead">
{{content}}
</p>
<p>
Read on <a href="{{link}}">Medium</a>
{{content}}
</p>
<p>Read on <a href="{{link}}">Medium</a></p>
</div>
</div>
</div>
<script src="../dist/index.js"></script>
</body>
</html>
<script src="../dist/index.js"></script>
</body>
</html>
102 changes: 65 additions & 37 deletions example/form.html
@@ -1,51 +1,79 @@
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="container my-5">
<form data-stein-url="http://localhost:8080/v1/storages/5be5fa57e10a8b38ac96f582/Sheet1" class="my-3" id="sheet-form">
<head>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div class="container my-5">
<form
data-stein-url="http://localhost:8080/v1/storages/5be5fa57e10a8b38ac96f582/Sheet1"
class="my-3"
id="sheet-form"
>
<div class="form-group">
<label for="title-input">Title</label>
<input id="title-input" name="title" class="form-control form-control-lg">
<label for="title-input">Title</label>
<input
id="title-input"
name="title"
class="form-control form-control-lg"
/>
</div>
<div class="form-group">
<label for="author-input">Author</label>
<input type="text" id="author-input" name="author" class="form-control">
<label for="author-input">Author</label>
<input
type="text"
id="author-input"
name="author"
class="form-control"
/>
</div>
<div class="form-group">
<label for="link-input">Medium Link</label>
<input type="url" id="link-input" name="link" class="form-control">
<label for="link-input">Medium Link</label>
<input type="url" id="link-input" name="link" class="form-control" />
</div>
<div class="form-group">
<label for="content-textarea">Content</label>
<textarea name="content" id="content-textarea" rows="5" class="form-control"></textarea>
<label for="content-textarea">Content</label>
<textarea
name="content"
id="content-textarea"
rows="5"
class="form-control"
></textarea>
</div>
<button type="submit" class="btn btn-primary" id="submit">Submit</button>
</form>
<div class="alert alert-success invisible" role="alert" id="completed-alert">
<button type="submit" class="btn btn-primary" id="submit">
Submit
</button>
</form>
<div
class="alert alert-success invisible"
role="alert"
id="completed-alert"
>
Row Appended!
</div>
</div>
</div>
<script src="../dist/index.js"></script>
<script>
const submitButton = document.getElementById("submit"),
requestCompletedAlert = document.getElementById("completed-alert"),
form = document.getElementById('sheet-form');
<script src="../dist/index.js"></script>
<script>
const submitButton = document.getElementById("submit"),
requestCompletedAlert = document.getElementById("completed-alert"),
form = document.getElementById("sheet-form");

form.addEventListener('submit', () => {
submitButton.disabled = true;
requestCompletedAlert.classList.add('invisible');
});
form.addEventListener("submit", () => {
submitButton.disabled = true;
requestCompletedAlert.classList.add("invisible");
});

form.addEventListener('ResponseReceived', (event) => {
if (event.detail.status === 200) {
requestCompletedAlert.classList.remove('invisible');
}
submitButton.disabled = false;
})
</script>
</body>
form.addEventListener("ResponseReceived", event => {
if (event.detail.status === 200) {
requestCompletedAlert.classList.remove("invisible");
}
submitButton.disabled = false;
});
</script>
</body>
</html>

0 comments on commit 9969344

Please sign in to comment.