-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
aa88bb9
commit 1328e5c
Showing
5 changed files
with
80 additions
and
52 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
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,55 +1,14 @@ | ||
<template> | ||
<div id="tcs-app"> | ||
<div v-if="$root.error" class="tcs-errors"> | ||
<h2>Error</h2> | ||
<p> | ||
An error occurred with TutorCruncher socket: | ||
</p> | ||
<p class="tcs-error-content">{{ $root.error }}</p> | ||
<p> | ||
<dl> | ||
<dt>If you're visiting this site:</dt> | ||
<dd> | ||
Get in touch with the owners of the site and let them know their TutorCruncher socket plugin isn't working. | ||
</dd> | ||
|
||
<dt>If you're developing this site:</dt> | ||
<dd> | ||
You might get more information from the developer console, if you can't work out what's wrong contact | ||
support@tutorcruncher.com. | ||
</dd> | ||
</dl> | ||
<img src="./assets/error.svg"> | ||
</div> | ||
<div v-else> | ||
<router-view></router-view> | ||
</div> | ||
<error v-if="$root.error"></error> | ||
<router-view></router-view> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default {} | ||
</script> | ||
import error from './components/error.vue' | ||
<style lang="scss" scoped> | ||
@import './conf'; | ||
.tcs-errors { | ||
background-color: $brand-colour; | ||
color: white; | ||
margin: 10px; | ||
padding: 20px 30px; | ||
img { | ||
width: 100%; | ||
} | ||
.tcs-error-content { | ||
font-family: monospace; | ||
background-color: darken($brand-colour, 5%); | ||
padding: 20px 10px; | ||
white-space: pre-wrap; | ||
} | ||
dt { | ||
margin: 15px 0 5px; | ||
font-weight: 500; | ||
} | ||
export default { | ||
components: {error} | ||
} | ||
</style> | ||
</script> |
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,50 @@ | ||
<template> | ||
<div class="tcs-errors"> | ||
<h2>Error</h2> | ||
<p> | ||
An error occurred with TutorCruncher socket: | ||
</p> | ||
<p class="tcs-error-content">{{ $root.error }}</p> | ||
<p> | ||
<dl> | ||
<dt>If you're visiting this site:</dt> | ||
<dd> | ||
Get in touch with the owners of the site and let them know their TutorCruncher socket plugin isn't working. | ||
</dd> | ||
|
||
<dt>If you're developing this site:</dt> | ||
<dd> | ||
You might get more information from the developer console, if you can't work out what's wrong contact | ||
support@tutorcruncher.com. | ||
</dd> | ||
</dl> | ||
<img src="../assets/error.svg"> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default {} | ||
</script> | ||
|
||
<style lang="scss"> | ||
@import '../conf'; | ||
.tcs-errors { | ||
background-color: $brand-colour; | ||
color: white; | ||
margin: 10px; | ||
padding: 20px 30px; | ||
img { | ||
width: 100%; | ||
} | ||
.tcs-error-content { | ||
font-family: monospace; | ||
background-color: darken($brand-colour, 5%); | ||
padding: 20px 10px; | ||
white-space: pre-wrap; | ||
} | ||
dt { | ||
margin: 15px 0 5px; | ||
font-weight: 500; | ||
} | ||
} | ||
</style> |
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