Skip to content
This repository was archived by the owner on Jul 1, 2021. It is now read-only.

Commit ec63e0f

Browse files
committed
Initial commit
0 parents  commit ec63e0f

29 files changed

+1364
-0
lines changed

.bowerrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "public/bower"
3+
}

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
bower
3+
build
4+
5+
*~
6+
*.log
7+
*.env
8+
*.migrate

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Quentin PANISSIER
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: node web.js

README.md

Whitespace-only changes.

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0.0 ( https://github.com/hardware/ovh-availability/releases/tag/v1.0.0 )

bin/cron

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env node
2+
3+
var argv = require('optimist').argv;
4+
var request = require('request');
5+
6+
var options = {
7+
method: 'GET',
8+
uri: process.env.APP_URL + 'cron/' + argv.task + '/' + process.env.CRON_KEY
9+
};
10+
11+
request(options, function( error, response, body ) {
12+
13+
if( ! error && response.statusCode == 200 ) console.log( body );
14+
15+
});

bower.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "ovh-availability",
3+
"version": "1.0.0",
4+
"description": "Application permettant de connaitre la disponibilité des serveurs d'OVH (SoYourStart, Kimsufi)",
5+
"main": "web.js",
6+
"moduleType": [
7+
"node"
8+
],
9+
"license": "MIT",
10+
"homepage": "https://github.com/hardware/ovh-availability",
11+
"private": true,
12+
"ignore": [
13+
"**/.*",
14+
"node_modules",
15+
"bower_components"
16+
],
17+
"dependencies": {
18+
"jquery": "1.11.1",
19+
"bootstrap": "3.2.0",
20+
"html5shiv": "3.7.2",
21+
"respond": "1.4.2"
22+
}
23+
}

database/schema.dbm

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
CAUTION: Do not modify this file unless you know what you are doing.
4+
Unexpected results may occur if the code is changed deliberately.
5+
-->
6+
<dbmodel pgmodeler-ver="0.7.0">
7+
<database name="new_database">
8+
</database>
9+
10+
<schema name="public" protected="true" fill-color="#e1e1e1" sql-disabled="true">
11+
</schema>
12+
13+
<usertype name="request_state" configuration="enumeration">
14+
<schema name="public"/>
15+
<enumeration values="pending,done"/>
16+
</usertype>
17+
18+
<table name="requests">
19+
<schema name="public"/>
20+
<position x="715" y="224"/>
21+
<column name="id" not-null="true">
22+
<type name="serial"/>
23+
</column>
24+
<column name="ref" not-null="true">
25+
<type name="character varying" length="10"/>
26+
</column>
27+
<column name="mail" not-null="true">
28+
<type name="character varying" length="100"/>
29+
</column>
30+
<column name="date" not-null="true" default-value="NOW()">
31+
<type name="timestamp" with-timezone="true"/>
32+
</column>
33+
<column name="state" not-null="true" default-value="'pending'">
34+
<type name="public.request_state"/>
35+
</column>
36+
<constraint name="id_requests_pm" type="pk-constr" factor="10" table="public.requests">
37+
<columns names="id" ref-type="src-columns"/>
38+
</constraint>
39+
</table>
40+
41+
<usertype name="servers_type" configuration="enumeration">
42+
<schema name="public"/>
43+
<enumeration values="sys,kimsufi"/>
44+
</usertype>
45+
46+
<table name="servers">
47+
<schema name="public"/>
48+
<position x="208" y="228"/>
49+
<column name="id" not-null="true">
50+
<type name="serial"/>
51+
</column>
52+
<column name="type" not-null="true">
53+
<type name="public.servers_type"/>
54+
</column>
55+
<column name="name" not-null="true">
56+
<type name="character varying" length="100"/>
57+
</column>
58+
<column name="reference" not-null="true">
59+
<type name="character varying" length="10"/>
60+
</column>
61+
<constraint name="id_servers_pm" type="pk-constr" factor="10" table="public.servers">
62+
<columns names="id" ref-type="src-columns"/>
63+
</constraint>
64+
</table>
65+
66+
<constraint name="reference_servers_fk" type="fk-constr" comparison-type="MATCH FULL"
67+
upd-action="NO ACTION" del-action="NO ACTION" ref-table="public.servers" table="public.requests">
68+
<columns names="ref" ref-type="src-columns"/>
69+
<columns names="reference" ref-type="dst-columns"/>
70+
</constraint>
71+
<relationship name="rel_requests_servers" type="relfk"
72+
src-table="public.requests"
73+
dst-table="public.servers"
74+
src-required="true" dst-required="true"/>
75+
76+
</dbmodel>

0 commit comments

Comments
 (0)