Remove JS and re-arange files
* Remove Javascript * Move files about * Add Makefile * Add Privacy & ToS * Add favicon * Make index.html static * Add requirements.txtmaster
@ -1,2 +1 @@
|
||||
config.json
|
||||
favicon.ico
|
||||
dist/*
|
||||
|
@ -1,172 +0,0 @@
|
||||
# Contributing to simple-dash
|
||||
|
||||
Looking to contribute something to simple-dash? **Here's how you can help.**
|
||||
|
||||
Please take a moment to review this document in order to make the contribution
|
||||
process easy and effective for everyone involved.
|
||||
|
||||
Following these guidelines helps to communicate that you respect the time of
|
||||
the developers managing and developing this open source project. In return,
|
||||
they should reciprocate that respect in addressing your issue or assessing
|
||||
patches and features.
|
||||
|
||||
|
||||
## Using the issue tracker
|
||||
|
||||
The [issue tracker](https://github.com/kutyla-philipp/simple-dash/issues) is
|
||||
the preferred channel for [bug reports](#bug-reports), [features requests](#feature-requests)
|
||||
and [submitting pull requests](#pull-requests), but please respect the following
|
||||
restrictions:
|
||||
|
||||
* Please **do not** derail or troll issues. Keep the discussion on topic and
|
||||
respect the opinions of others.
|
||||
|
||||
## Issues and labels
|
||||
|
||||
Our bug tracker utilizes several labels to help organize and identify issues. Here's what they represent and how we use them:
|
||||
|
||||
- `bug` - Issues for a potential bug in simple-dash.
|
||||
- `docs` - Issues for improving or updating our documentation.
|
||||
- `feature` - Issues asking for a new feature to be added, or an existing one to be extended or modified.
|
||||
- `help wanted` - Issues we need or would love help from the community to resolve.
|
||||
- `question` - General purpose question about simple-dash.
|
||||
|
||||
For a complete look at our labels, see the [project labels page](https://github.com/kutyla-philipp/simple-dash/labels).
|
||||
|
||||
|
||||
## Bug reports
|
||||
|
||||
A bug is a _demonstrable problem_ that is caused by the code in the repository.
|
||||
Good bug reports are extremely helpful, so thanks!
|
||||
|
||||
Guidelines for bug reports:
|
||||
|
||||
0. **Validate and lint your code** — [validate your HTML](http://html5.validator.nu)
|
||||
and [lint your HTML](https://github.com/twbs/bootlint) to ensure your
|
||||
problem isn't caused by a simple error in your own code.
|
||||
|
||||
1. **Use the GitHub issue search** — check if the issue has already been
|
||||
reported.
|
||||
|
||||
2. **Check if the issue has been fixed** — try to reproduce it using the
|
||||
latest `master` or development branch in the repository.
|
||||
|
||||
3. **Isolate the problem** — ideally create a live example.
|
||||
[This jsfiddle](http://jsfiddle.net/) is a helpful tools.
|
||||
|
||||
|
||||
A good bug report shouldn't leave others needing to chase you up for more
|
||||
information. Please try to be as detailed as possible in your report. What is
|
||||
your environment? What steps will reproduce the issue? What browser(s) and OS
|
||||
experience the problem? Do other browsers show the bug differently? What
|
||||
would you expect to be the outcome? All these details will help people to fix
|
||||
any potential bugs.
|
||||
|
||||
Example:
|
||||
|
||||
> Short and descriptive example bug report title
|
||||
>
|
||||
> A summary of the issue and the browser/OS environment in which it occurs. If
|
||||
> suitable, include the steps required to reproduce the bug.
|
||||
>
|
||||
> 1. This is the first step
|
||||
> 2. This is the second step
|
||||
> 3. Further steps, etc.
|
||||
>
|
||||
> `<url>` - a link to the reduced test case
|
||||
>
|
||||
> Any other information you want to share that is relevant to the issue being
|
||||
> reported. This might include the lines of code that you have identified as
|
||||
> causing the bug, and potential solutions (and your opinions on their
|
||||
> merits).
|
||||
|
||||
|
||||
## Feature requests
|
||||
|
||||
Feature requests are welcome. But take a moment to find out whether your idea
|
||||
fits with the scope and aims of the project. It's up to *you* to make a strong
|
||||
case to convince the project's developers of the merits of this feature. Please
|
||||
provide as much detail and context as possible.
|
||||
|
||||
|
||||
## Pull requests
|
||||
|
||||
Good pull requests—patches, improvements, new features—are a fantastic
|
||||
help. They should remain focused in scope and avoid containing unrelated
|
||||
commits.
|
||||
|
||||
**Please ask first** before embarking on any significant pull request (e.g.
|
||||
implementing features, refactoring code, porting to a different language),
|
||||
otherwise you risk spending a lot of time working on something that the
|
||||
project's developers might not want to merge into the project.
|
||||
|
||||
Please adhere to the [coding guidelines](#code-guidelines) used throughout the
|
||||
project (indentation, accurate comments, etc.) and any other requirements
|
||||
(such as test coverage).
|
||||
|
||||
Adhering to the following process is the best way to get your work
|
||||
included in the project:
|
||||
|
||||
1. [Fork](https://help.github.com/articles/fork-a-repo/) the project, clone your fork,
|
||||
and configure the remotes:
|
||||
|
||||
```bash
|
||||
# Clone your fork of the repo into the current directory
|
||||
git clone https://github.com/<your-username>/simple-dash.git
|
||||
# Navigate to the newly cloned directory
|
||||
cd simple-dash
|
||||
# Assign the original repo to a remote called "upstream"
|
||||
git remote add upstream https://github.com/kutyla-philipp/simple-dash.git
|
||||
```
|
||||
|
||||
2. If you cloned a while ago, get the latest changes from upstream:
|
||||
|
||||
```bash
|
||||
git checkout master
|
||||
git pull upstream master
|
||||
```
|
||||
|
||||
3. Create a new topic branch (off the main project development branch) to
|
||||
contain your feature, change, or fix:
|
||||
|
||||
```bash
|
||||
git checkout -b <topic-branch-name>
|
||||
```
|
||||
|
||||
4. Commit your changes in logical chunks. Please adhere to these [git commit
|
||||
message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
|
||||
or your code is unlikely be merged into the main project. Use Git's
|
||||
[interactive rebase](https://help.github.com/articles/about-git-rebase/)
|
||||
feature to tidy up your commits before making them public.
|
||||
|
||||
5. Locally merge (or rebase) the upstream development branch into your topic branch:
|
||||
|
||||
```bash
|
||||
git pull [--rebase] upstream master
|
||||
```
|
||||
|
||||
6. Push your topic branch up to your fork:
|
||||
|
||||
```bash
|
||||
git push origin <topic-branch-name>
|
||||
```
|
||||
|
||||
7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
|
||||
with a clear title and description against the `master` branch.
|
||||
|
||||
**IMPORTANT**: By submitting a patch, you agree to allow the project owners to
|
||||
license your work under the terms of the [MIT License](LICENSE.md) (if it
|
||||
includes code changes).
|
||||
|
||||
|
||||
## Code guidelines
|
||||
|
||||
- Readability
|
||||
- Need semicolons
|
||||
- strict mode
|
||||
- "Attractive"
|
||||
|
||||
|
||||
## License
|
||||
|
||||
By contributing your code, you agree to license your contribution under the [MIT License](LICENSE.md).
|
@ -0,0 +1,39 @@
|
||||
.PHONY: help all local deploy install clean build test sync post-test
|
||||
|
||||
SITENAME=juancanham.com
|
||||
#TARGET=/var/www/html/simpler-dash/
|
||||
TARGET=home:/tmp/simpler-dash/
|
||||
linkchecker=linkchecker --check-extern
|
||||
|
||||
help:
|
||||
@echo 'all: local deploy'
|
||||
@echo 'local: install clean build'
|
||||
@echo 'deploy: test sync post-test'
|
||||
|
||||
all: local deploy
|
||||
local: install build
|
||||
deploy: test sync post-test
|
||||
|
||||
install:
|
||||
pip install -r requirements.txt
|
||||
|
||||
clean:
|
||||
rm -r dist/* || true
|
||||
|
||||
build: clean
|
||||
cp -v *.html *.jpg *.ico dist/
|
||||
cp -rv css/ webfonts/ dist/
|
||||
for file in ToS Privacy; do markdown_py $${file}.md > dist/$${file} ; done
|
||||
|
||||
test:
|
||||
$(linkchecker) dist/index.html
|
||||
|
||||
sync:
|
||||
rsync -vr --delete dist/ $(TARGET)
|
||||
|
||||
post-test:
|
||||
$(linkchecker) https://$(SITENAME)
|
||||
wget http://${SITENAME} -O /dev/null
|
||||
|
||||
|
||||
|
@ -0,0 +1,51 @@
|
||||
# Websites Terms and Conditions of Use
|
||||
|
||||
0. Tl;DR
|
||||
Use my site, if you want, but don't sue me.
|
||||
|
||||
1. Terms
|
||||
By accessing My Websites (juancanham.com, riotingpacifist.net & *.riotingpacifist.net), you are agreeing to be bound by these Websites Terms and Conditions of Use and agree that you are responsible for the agreement with any applicable local laws.
|
||||
|
||||
2. Use License
|
||||
Permission is granted to temporarily download one copy of the materials on My Websites for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title.
|
||||
Additionally almost all of My Websites are availible under an open source license
|
||||
|
||||
3. Disclaimer
|
||||
All the materials on My Websites are provided “as is”.
|
||||
I makes no warranties, may it be expressed or implied, therefore negates all other warranties.
|
||||
Furthermore, I does not make any representations concerning the accuracy or reliability of the use of the materials on any sites linked to my websites.
|
||||
|
||||
4. Limitations
|
||||
I will not be hold accountable for any damages that will arise with the use or inability to use the materials on My Websites.
|
||||
Some jurisdiction does not allow limitations on implied warranties or limitations of liability for incidental damages, these limitations may not apply to you.
|
||||
|
||||
5. Revisions and Errata
|
||||
The materials appearing on My Websites may include technical, typographical, or photographic errors.
|
||||
I will not promise that any of the materials in my websites are accurate, complete, or current.
|
||||
I may change the materials contained on its Websites at any time without notice.
|
||||
I does not make any commitment to update the materials.
|
||||
|
||||
6. Links
|
||||
I has not reviewed all of the sites linked to its Websites and is not responsible for the contents of any such linked site.
|
||||
The presence of any link does not imply endorsement by me of the site.
|
||||
The use of any linked website is at the user's own risk.
|
||||
|
||||
7. Site Terms of Use Modifications
|
||||
If I revise the Terms of Service I will attempt give notice to all users via any registered emails at least 7 days prior to changes.
|
||||
By using my websites, you are agreeing to be bound by the current version of these Terms and Conditions of Use.
|
||||
If you are unhappy with any changes, all account data will be availible for export
|
||||
|
||||
8. Governing Law
|
||||
Any claim related to My Websites shall be governed by the laws of the United Kingdom without regards to its conflict of law provisions.
|
||||
|
||||
9. Termination
|
||||
I reserve the right to delete your data or account as I see fit.
|
||||
Prior to deleting an account, I will attempt give users 7 days notices via a registered email or other communication method.
|
||||
When possible all data will be availible for export
|
||||
|
||||
|
||||
10. Modification of Public Data
|
||||
I reserve the right to modify any publicly displayed content on My Websites.
|
||||
|
||||
11. Modification of Private Data
|
||||
I connit to only modifying private date, such to fix bugs on My Websites or to delete data to comply with legal requirements
|
After Width: | Height: | Size: 1006 KiB |
@ -1,20 +0,0 @@
|
||||
{
|
||||
"title" : "Simple Dash",
|
||||
"items" : [
|
||||
{
|
||||
"alt" : "Github",
|
||||
"icon" : "fab fa-github",
|
||||
"link" : "https://github.com/kutyla-philipp"
|
||||
},
|
||||
{
|
||||
"alt" : "Twitter",
|
||||
"icon" : "fab fa-twitter",
|
||||
"link" : "https://twitter.com/Kukielka_"
|
||||
},
|
||||
{
|
||||
"alt" : "Docker Hub",
|
||||
"icon" : "fab fa-docker",
|
||||
"link" : "https://hub.docker.com/u/kukielka/"
|
||||
}
|
||||
]
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
{
|
||||
"title" : "Your Homepage Title",
|
||||
"items" : [
|
||||
{
|
||||
"alt" : "Github",
|
||||
"icon" : "fab fa-github",
|
||||
"link" : "https://github.com/kutyla-philipp"
|
||||
},
|
||||
{
|
||||
"alt" : "Twitter",
|
||||
"icon" : "fab fa-twitter",
|
||||
"link" : "https://twitter.com/Kukielka_"
|
||||
},
|
||||
{
|
||||
"alt" : "Docker Hub",
|
||||
"icon" : "fab fa-docker",
|
||||
"link" : "https://hub.docker.com/u/kukielka/"
|
||||
}
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 182 KiB |
Before Width: | Height: | Size: 148 KiB |
Before Width: | Height: | Size: 23 B After Width: | Height: | Size: 97 KiB |
@ -1,75 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Loading...</title>
|
||||
<title>Juan Canham Services</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<link rel="stylesheet" type="text/css" href="common/css/fontawesome-all.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="common/css/main.css" />
|
||||
<meta charset="utf-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="css/fontawesome-all.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/main.css" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
</head>
|
||||
|
||||
<body id="homepage">
|
||||
|
||||
<!-- Fork me on GitHub
|
||||
http://tholman.com/github-corners/ -->
|
||||
<a href="https://github.com/kutyla-philipp/simple-dash" class="github-corner" aria-label="View source on GitHub"><svg width="50" height="50" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
|
||||
<!-- end Fork me on GitHub -->
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="itemlist">
|
||||
<a title="Loading..."><i class="fa-spin fas fa-spinner fa-fw"></i></a>
|
||||
<a href="https://cv.juancanham.com" title="CV"><i class="fa fa-address-card fa-fw"></i></a>
|
||||
<a href="https://git.riotingpacifist.net" title="Gitea"><i class="fab fa-git-alt fa-fw"></i></a>
|
||||
<a href="https://nextcloud.juancanham.com" title="NextCloud"><i class="fa fa-cloud fa-fw"></i></a>
|
||||
<!-- <a href="https://nextcloud.juancanham.com" title="Drone (CI)"><i class="fa fa-robot fa-fw"></i></a> -->
|
||||
<a href="https://github.com/JuanCanham" title="Github"><i class="fab fa-github fa-fw"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="common/js/trianglify.min.js"></script>
|
||||
<script>
|
||||
var request = new XMLHttpRequest();
|
||||
request.overrideMimeType("application/json");
|
||||
request.open("GET", 'config.json');
|
||||
request.onload = function () {
|
||||
if (request.status >= 200 && request.status < 400) {
|
||||
var config = JSON.parse(this.response);
|
||||
console.log(config);
|
||||
document.title = config.title;
|
||||
|
||||
var itemlistHTML = '';
|
||||
for (var i = 0; i < config.items.length; i++) {
|
||||
var item = config.items[i];
|
||||
itemlistHTML += '<a href="'+item.link+'" title="'+item.alt+'"><i class="'+item.icon+' fa-fw"></i></a>';
|
||||
}
|
||||
document.getElementById("itemlist").innerHTML = itemlistHTML;
|
||||
} else {
|
||||
var error_text = "Error: "+request.status;
|
||||
console.error(error_text);
|
||||
document.title = error_text;
|
||||
}
|
||||
}
|
||||
request.send(null);
|
||||
|
||||
function addTriangleTo(target) {
|
||||
var dimensions = target.getClientRects()[0];
|
||||
var pattern = Trianglify({
|
||||
width: dimensions.width,
|
||||
height: dimensions.height
|
||||
});
|
||||
|
||||
target.style['background-image'] = 'url(' + pattern.png() + ')';
|
||||
target.style['background-size'] = 'cover';
|
||||
target.style['-webkit-background-size'] = 'cover';
|
||||
target.style['-moz-background-size'] = 'cover';
|
||||
target.style['-o-background-size'] = 'cover';
|
||||
}
|
||||
|
||||
var resizeTimer;
|
||||
window.addEventListener("resize", function () {
|
||||
clearTimeout(resizeTimer);
|
||||
resizeTimer = setTimeout(function() {
|
||||
addTriangleTo(homepage);
|
||||
}, 400);
|
||||
})
|
||||
|
||||
addTriangleTo(homepage);
|
||||
</script>
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p>
|
||||
<a href="Privacy">Privacy Policy</a>
|
||||
-
|
||||
<a href="ToS">Terms of Service</a>
|
||||
-
|
||||
<a href="https://git.riotingpacifist.net/JuanCanham/simpler-dash">Source Code</a>
|
||||
//
|
||||
<a href="https://unsplash.com/photos/cs0sK0gzqCU">image</a>
|
||||
by <a href="https://unsplash.com/@eberhardgross">@eberhardgross</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -0,0 +1 @@
|
||||
Markdown==3.2.*
|
Before Width: | Height: | Size: 676 KiB After Width: | Height: | Size: 676 KiB |
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 820 KiB After Width: | Height: | Size: 820 KiB |