Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
chmod all files, rsync for deploy, cdn support, build page borked
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McLeod committed May 26, 2015
1 parent 7bab67d commit 0a7494e
Show file tree
Hide file tree
Showing 148 changed files with 150 additions and 153 deletions.
2 changes: 1 addition & 1 deletion app/.htaccess → .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Activate mod_expires for this directory
ExpiresActive on

ExpiresDefault "access plus 365 days"
ExpiresDefault "access"
ExpiresByType text/html "access"
ExpiresByType application/json "access"
</IfModule>
Expand Down
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified app/icons/coriolis.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/icons/github-mark.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/icons/mount-F.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/icons/mount-G.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/icons/mount-T.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/bay-1920x1080.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/deep-space-1920x1080.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/android-chrome-144x144.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/android-chrome-192x192.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/android-chrome-72x72.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/android-chrome-96x96.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/apple-touch-icon-114x114.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/apple-touch-icon-120x120.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/apple-touch-icon-144x144.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/apple-touch-icon-152x152.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/apple-touch-icon-180x180.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/apple-touch-icon-76x76.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/apple-touch-icon-precomposed.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/apple-touch-icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/browserconfig.xml
100644 → 100755
Empty file.
Empty file modified app/images/logo/favicon-194x194.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/favicon-96x96.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/favicon.ico
100644 → 100755
Empty file.
Empty file modified app/images/logo/manifest.json
100644 → 100755
Empty file.
Empty file modified app/images/logo/mstile-144x144.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/mstile-150x150.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/mstile-310x150.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/mstile-310x310.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/images/logo/mstile-70x70.png
100644 → 100755
1 change: 0 additions & 1 deletion app/index.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html ng-app="app" ng-strict-di="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title ng-bind="title">Coriolis</title>
<link rel="stylesheet" href="/app.css">
<link rel="apple-touch-icon" sizes="76x76" href="/images/logo/apple-touch-icon-76x76.png">
Expand Down
Empty file modified app/js/app.js
100644 → 100755
Empty file.
Empty file modified app/js/config.js
100644 → 100755
Empty file.
19 changes: 10 additions & 9 deletions app/js/controllers/controller-comparison.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
*/
$scope.addBuild = function (shipId, buildName, code) {
var data = Ships[shipId]; // Get ship properties
var code = code? code : Persist.builds[shipId][buildName]; // Retrieve build code if not passed
code = code? code : Persist.builds[shipId][buildName]; // Retrieve build code if not passed
var b = new Ship(shipId, data.properties, data.slots); // Create a new Ship instance
Serializer.toShip(b, code); // Populate components from code
// Extend ship instance and add properties below
Expand Down Expand Up @@ -153,28 +153,29 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
$scope.desc
);
return $state.href('comparison', {code: code}, {absolute:true});
};
}

/* Event listeners */
$scope.$on('close', function() {
$scope.showBuilds = false;
});

/* Initialization */
var shipId, buildName, comparisonData;
if ($scope.compareMode) {
if ($scope.name == 'all') {
for (var shipId in Persist.builds) {
for (var buildName in Persist.builds[shipId]) {
for (shipId in Persist.builds) {
for (buildName in Persist.builds[shipId]) {
$scope.addBuild(shipId, buildName);
}
}
} else {
for (var shipId in Persist.builds) {
for (var buildName in Persist.builds[shipId]) {
for (shipId in Persist.builds) {
for (buildName in Persist.builds[shipId]) {
$scope.unusedBuilds.push({id: shipId, buildName: buildName, name: Ships[shipId].properties.name});
}
}
var comparisonData = Persist.getComparison($scope.name);
comparisonData = Persist.getComparison($scope.name);
if (comparisonData) {
defaultFacets = comparisonData.facets;
comparisonData.builds.forEach(function (b) {
Expand All @@ -185,9 +186,9 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
}
} else {
try {
var comparisonData = Serializer.toComparison($stateParams.code);
comparisonData = Serializer.toComparison($stateParams.code);
defaultFacets = comparisonData.f;
$scope.name = comparisonData.n
$scope.name = comparisonData.n;
$scope.predicate = comparisonData.p;
$scope.desc = comparisonData.d;
comparisonData.b.forEach(function (build) {
Expand Down
Empty file modified app/js/controllers/controller-delete.js
100644 → 100755
Empty file.
Empty file modified app/js/controllers/controller-error.js
100644 → 100755
Empty file.
Empty file modified app/js/controllers/controller-export.js
100644 → 100755
Empty file.
Empty file modified app/js/controllers/controller-import.js
100644 → 100755
Empty file.
Empty file modified app/js/controllers/controller-link.js
100644 → 100755
Empty file.
Empty file modified app/js/controllers/controller-modal.js
100644 → 100755
Empty file.
Empty file modified app/js/controllers/controller-outfit.js
100644 → 100755
Empty file.
Empty file modified app/js/controllers/controller-shipyard.js
100644 → 100755
Empty file.
Empty file modified app/js/directives/directive-area-chart.js
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions app/js/directives/directive-bar-chart.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
angular.module('app').directive('barChart', ['$rootScope', function ($rootScope) {
angular.module('app').directive('barChart', function () {

function bName (build) {
return build.buildName + '\n' + build.name;
Expand Down Expand Up @@ -118,4 +118,4 @@ angular.module('app').directive('barChart', ['$rootScope', function ($rootScope)

}
};
}]);
});
Empty file modified app/js/directives/directive-comparison-table.js
100644 → 100755
Empty file.
Empty file modified app/js/directives/directive-component-select.js
100644 → 100755
Empty file.
Empty file modified app/js/directives/directive-header.js
100644 → 100755
Empty file.
Empty file modified app/js/directives/directive-slot-hardpoint.js
100644 → 100755
Empty file.
Empty file modified app/js/directives/directive-slot-internal.js
100644 → 100755
Empty file.
14 changes: 7 additions & 7 deletions app/js/factory-utils.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ angular.module('app').factory('Utils', ['$state','$http', function ($state, $htt
}

function comparisonBBCode(facets, builds, link) {
var colCount = 2, i,j,k, l = [];
var colCount = 2, b, i, j, k, f, fl, p, pl, l = [];

for (i = 0; i < facets.length; i++) {
if (facets[i].active) {
var f = facets[i];
var p = f.props;
f = facets[i];
p = f.props;

if (p.length == 1) {
l.push('[th][B][COLOR=#FF8C0D]', f.title, '[/COLOR][/B][/th]');
Expand All @@ -33,15 +33,15 @@ angular.module('app').factory('Utils', ['$state','$http', function ($state, $htt
l.push('[/tr]\n');

for (i = 0; i < builds.length; i++) {
var b = builds[i];
b = builds[i];
//var href = $state.href('outfit',{shipId: b.id, code: b.code, bn: b.buildName}, {absolute: true});
l.push('[tr][td]', b.name,'[/td][td]', b.buildName ,'[/td]');

for (j = 0, fl = facets.length; j < fl; j++) {
if (facets[j].active) {
var f = facets[j];
var p = f.props;
for (var k = 0, pl = p.length; k < pl; k++) {
f = facets[j];
p = f.props;
for (k = 0, pl = p.length; k < pl; k++) {
l.push('[td="align: right"]', f.fmt(b[p[k]]), ' [size=-2]', f.unit, '[/size][/td]');
}
}
Expand Down
8 changes: 4 additions & 4 deletions app/js/service-persist.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
this.comparisons[name] = {
facets: facets,
builds: _.map(builds, function (b) { return {shipId: b.id, buildName: b.buildName }; })
}
};
localStorage.setItem(LS_KEY_COMPARISONS, angular.toJson(this.comparisons));
this.state.hasComparisons = true;
}
};

/**
* [getComparison description]
Expand All @@ -105,7 +105,7 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
return this.comparisons[name];
}
return null;
}
};

/**
* Removes the comparison from localstorage.
Expand All @@ -117,7 +117,7 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
localStorage.setItem(LS_KEY_COMPARISONS, angular.toJson(this.comparisons));
this.state.hasComparisons = Object.keys(this.comparisons).length > 0;
}
}
};

/**
* Delete all builds and comparisons from localStorage
Expand Down
4 changes: 2 additions & 2 deletions app/js/service-serializer.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ angular.module('app').service('Serializer', ['lodash', function (_) {
p: predicate,
d: desc? 1 : 0
})).replace(/\//g,'-');
}
};

this.toComparison = function (code) {
return angular.fromJson(LZString.decompressFromBase64(code.replace(/-/g,'/')));
}
};

/**
* Utility function to retrieve a safe string for selected component for a slot.
Expand Down
Empty file modified app/js/shipyard/factory-component-set.js
100644 → 100755
Empty file.
Empty file modified app/js/shipyard/factory-ship.js
100644 → 100755
Empty file.
Empty file modified app/js/shipyard/module-shipyard.js
100644 → 100755
Empty file.
Empty file modified app/js/shipyard/service-components.js
100644 → 100755
Empty file.
Empty file modified app/less/app.less
100644 → 100755
Empty file.
Empty file modified app/less/background-images.less
100644 → 100755
Empty file.
Empty file modified app/less/buttons.less
100644 → 100755
Empty file.
Empty file modified app/less/chart-tooltip.less
100644 → 100755
Empty file.
Empty file modified app/less/charts.less
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions app/less/colors.less
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
@secondary-bg: fadeout(darken(@secondary, @bgDarken), @bgTransparency); // Brown background
@warning-bg: fadeout(darken(@warning, @bgDarken), @bgTransparency); // Dark Red


.fg {
color: @fg;
fill: @fg;
}

.disabled {
color: @disabled;
fill: @disabled;
Expand Down
Empty file modified app/less/comparison.less
100644 → 100755
Empty file.
Empty file modified app/less/error.less
100644 → 100755
Empty file.
Empty file modified app/less/fonts.less
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion app/less/header.less
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ header {
text-decoration: none;

&.name {
font-family: Helvetica, sans-serif;
font-family: Helvetica, Arial, sans-serif;
}

&:visited {
Expand Down
Empty file modified app/less/icons.less
100644 → 100755
Empty file.
4 changes: 0 additions & 4 deletions app/less/list.less
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,4 @@
}
}

&:nth-child(n+2) {
border-top: 1px solid @primary;
}

}
Empty file modified app/less/modal.less
100644 → 100755
Empty file.
19 changes: 8 additions & 11 deletions app/less/outfit.less
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@

input {
background: none;
color: @primary-disabled;
outline: none;
line-height: 1.5em;
font-size: 0.8em;
border: 1px solid @primary-disabled;
box-sizing: border-box;
display: inline-block;
padding: 0.5em;
&:hover, &:focus {

&:focus {
border: 1px solid @primary;
color: @primary;
}
Expand Down Expand Up @@ -54,13 +52,12 @@

#summary {
.user-select-none();
float: right;
min-width: 40em;
margin: 0.25em;
border-top: 2px solid @primary;
border-bottom: 2px solid @primary;
background-color: @primary-bg;
text-align: left;
margin: 0;
border-collapse: collapse;

tbody td {
padding: 0 0.5em;
}
}

.toggle {
Expand Down
Empty file modified app/less/select.less
100644 → 100755
Empty file.
Empty file modified app/less/shipyard.less
100644 → 100755
Empty file.
Empty file modified app/less/slot.less
100644 → 100755
Empty file.
Empty file modified app/less/sortable.less
100644 → 100755
Empty file.
Empty file modified app/less/table.less
100644 → 100755
Empty file.
16 changes: 16 additions & 0 deletions app/less/utilities.less
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,19 @@
-ms-user-select: none;
user-select: none;
}

.vertical {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
transform: rotate(-90deg);

-webkit-transform-origin: 50% 50%;
-moz-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
-o-transform-origin: 50% 50%;
transform-origin: 50% 50%;

filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
2 changes: 0 additions & 2 deletions app/views/_header.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,4 @@
</div>
</div>

<!-- <a href="#" class="r" target="_blank" title="Reddit Thread"><svg class="icon xl"><use xlink:href="#reddit"></use></svg></a> -->

</header>
Empty file modified app/views/_modal.html
100644 → 100755
Empty file.
Empty file modified app/views/_slot-hardpoint.html
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions app/views/_slot-internal.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<div class="l" ng-if="c.c.bins">{{c.c.bins}} <u>Bins</u></div>
<div class="l" ng-if="c.c.rate">Rate: {{$r.fRound4(c.c.rate/1000)}} <u>T/s</u></div>
<div class="l" ng-if="c.c.ammo">Ammo: {{c.c.ammo}}</div>
<div class="l" ng-if="c.c.cells">Cells: {{c.c.cells}}</div>
<div class="l" ng-if="c.c.recharge">Recharge: {{c.c.recharge}} <u>Mj</u></div>
<div class="l" ng-if="c.c.repair">Repair: {{c.c.repair}}</div>
<div class="l" ng-if="c.c.range">{{c.c.range}} <u>KM</u></div>
<div class="l" ng-if="c.c.rangeRating">Range: {{c.c.rangeRating}}</div>
Expand Down
9 changes: 7 additions & 2 deletions app/views/modal-about.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ <h1><svg class="icon xl"><use xlink:href="#coriolis"></use></svg> <span class="w

<p>Coriolis was created for non-commercial purposes. It is not endorsed by nor reflects the views or opinions of Frontier Developments.</p>

<h2>Github</h2>
<a href="https://github.com/cmmcleod/coriolis" target="_blank" title="Coriolis Github Project">github.com/cmmcleod/coriolis</a>
<div>
<a class="l" style="margin: 0.4em" href="https://github.com/cmmcleod/coriolis" target="_blank" title="Coriolis Github Project">
<svg class="icon fg xl"><use xlink:href="#github-mark"></use></svg>
</a>
<h2>Github</h2>
<a href="https://github.com/cmmcleod/coriolis" target="_blank" title="Coriolis Github Project">github.com/cmmcleod/coriolis</a>
</div>
<p>
Coriolis is an open source project. Checkout the list of upcoming features and to-do list on github.
Any and all contributions and feedback are welcome. If you encounter any bugs please report them and provide as much detail as possible.
Expand Down
Empty file modified app/views/modal-delete.html
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion app/views/modal-export.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h2 ng-bind="title"></h2>
<div>
<textarea class="cb json" ng-focus="onTextClick($event)" ng-bind="export"></textarea>
<textarea class="cb json" ng-click="onTextClick($event)" ng-bind="export"></textarea>
</div>
<button class="r dismiss" ng-click="dismiss()">Close</button>
Empty file modified app/views/modal-import.html
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions app/views/modal-link.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<h2>Permalink</h2>
<br>
<h3>URL</h3>
<input ng-model="url" size="70" ng-focus="onTextClick($event)">
<input ng-model="url" size="70" ng-click="onTextClick($event)">
<br><br>
<h3>Shortened</h3>
<input ng-model="shortenedUrl" size="25" ng-focus="onTextClick($event)">
<input ng-model="shortenedUrl" size="25" ng-click="onTextClick($event)">
<br><br>
<button class="r dismiss" ng-click="dismiss()">Close</button>
2 changes: 1 addition & 1 deletion app/views/page-comparison.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h3>Select Builds to Compare</h3>
<table>
<thead><tr><th colspan="2">Available</th></tr></thead>
<tbody>
<tr ng-repeat="b in unusedBuilds | orderBy:'[0]'" ng-click="addBuild(b.id, b.buildName)">
<tr ng-repeat="b in unusedBuilds | orderBy:'name'" ng-click="addBuild(b.id, b.buildName)">
<td class="tl" ng-bind="b.name"></td><td class="tl" ng-bind="b.buildName"></td>
</tr>
</tbody>
Expand Down
Empty file modified app/views/page-error.html
100644 → 100755
Empty file.
Loading

0 comments on commit 0a7494e

Please sign in to comment.