From e4a826592f2dd749a138e844f759f990d003350d Mon Sep 17 00:00:00 2001
From: willyb321
Date: Fri, 27 Sep 2019 07:15:13 +1000
Subject: [PATCH 01/66] remove ads, trial didnt work
---
src/index.ejs | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/index.ejs b/src/index.ejs
index 72d966b1..bf87243c 100644
--- a/src/index.ejs
+++ b/src/index.ejs
@@ -2,13 +2,6 @@
Coriolis EDCD Edition
-
-
From 67409a613bf535b7862f57c214a2f32b7dedf961 Mon Sep 17 00:00:00 2001
From: willyb321
Date: Fri, 27 Sep 2019 07:45:03 +1000
Subject: [PATCH 02/66] add migrate page, need to make it redirect still
---
src/migrate.html | 98 ++++++++++++++++++++++++++++++++++++++++++
webpack.config.dev.js | 5 +++
webpack.config.prod.js | 4 ++
3 files changed, 107 insertions(+)
create mode 100644 src/migrate.html
diff --git a/src/migrate.html b/src/migrate.html
new file mode 100644
index 00000000..7a847b74
--- /dev/null
+++ b/src/migrate.html
@@ -0,0 +1,98 @@
+
+
+
+ Coriolis EDCD Edition
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ You are currently on coriolis.
.edcd .io This domain is
+ considered deprecated. To migrate your builds, copy the below text and
+ go to
+
this link , press ctrl + i and then paste in the data. (If you are on mobile,
+ you can go to the settings and hit import)
+
+
+
+
+
+
+
+
+
diff --git a/webpack.config.dev.js b/webpack.config.dev.js
index 44b8a02b..bd09fa55 100644
--- a/webpack.config.dev.js
+++ b/webpack.config.dev.js
@@ -42,6 +42,11 @@ module.exports = {
date: buildDate,
gapiKey: process.env.CORIOLIS_GAPI_KEY || ''
}),
+ new HtmlWebpackPlugin({
+ inject: false,
+ template: path.join(__dirname, 'src/migrate.html'),
+ filename: 'migrate.html'
+ }),
new ExtractTextPlugin({
filename: 'app.css',
disable: false,
diff --git a/webpack.config.prod.js b/webpack.config.prod.js
index 97b3b85c..27a777f0 100644
--- a/webpack.config.prod.js
+++ b/webpack.config.prod.js
@@ -45,6 +45,10 @@ module.exports = {
date: buildDate,
version: pkgJson.version
}),
+ new HtmlWebpackPlugin({
+ inject: true,
+ template: path.join(__dirname, 'src/migrate.html')
+ }),
new ExtractTextPlugin({
filename: '[hash:6].css',
disable: false,
From 1b8c460876767a0b374dd65d0693a1265fac1b1f Mon Sep 17 00:00:00 2001
From: willyb321
Date: Sun, 13 Oct 2019 07:16:19 +1100
Subject: [PATCH 03/66] orbis fixes
---
src/app/Coriolis.jsx | 6 +++---
src/app/components/Header.jsx | 5 ++++-
src/app/pages/OutfittingPage.jsx | 9 ++++-----
src/app/utils/ShortenUrl.js | 2 +-
4 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/src/app/Coriolis.jsx b/src/app/Coriolis.jsx
index 8b544b1f..79ec5838 100644
--- a/src/app/Coriolis.jsx
+++ b/src/app/Coriolis.jsx
@@ -113,9 +113,9 @@ export default class Coriolis extends React.Component {
async _getAnnouncements() {
try {
- const announces = await request.get('https://orbis.zone/api/announcement')
- .query({ showInCoriolis: true });
- this.setState({ announcements: announces.body });
+ const announces = await request.get('https://api.orbis.zone/announcements')
+ .query({ coriolis: true });
+ this.setState({ announcements: announces });
} catch (err) {
console.error(err)
}
diff --git a/src/app/components/Header.jsx b/src/app/components/Header.jsx
index 37456526..6c56e504 100644
--- a/src/app/components/Header.jsx
+++ b/src/app/components/Header.jsx
@@ -426,7 +426,10 @@ export default class Header extends TranslatedComponent {
if (this.props.announcements) {
announcements = [];
for (let announce of this.props.announcements) {
- announcements.push( );
+ if (announce.expiry < Date.now()) {
+ continue;
+ }
+ announcements.push( );
announcements.push( );
}
}
diff --git a/src/app/pages/OutfittingPage.jsx b/src/app/pages/OutfittingPage.jsx
index 94c786b3..3b709258 100644
--- a/src/app/pages/OutfittingPage.jsx
+++ b/src/app/pages/OutfittingPage.jsx
@@ -686,13 +686,12 @@ export default class OutfittingPage extends Page {
_genOrbis() {
const data = {};
const ship = this.state.ship;
- ship.coriolisId = ship.id;
- data.coriolisShip = ship;
- data.url = window.location.href;
data.title = this.state.buildName || ship.id;
data.description = this.state.buildName || ship.id;
- data.ShipName = ship.id;
- data.Ship = ship.id;
+ data.body = ship;
+ data.url = `https://coriolis.io${outfitURL(ship.id, ship.toString(), data.title)}`;
+ ship.type = ship.id;
+
console.log(data);
this.context.showModal( );
}
diff --git a/src/app/utils/ShortenUrl.js b/src/app/utils/ShortenUrl.js
index 2846db50..1097f3d1 100644
--- a/src/app/utils/ShortenUrl.js
+++ b/src/app/utils/ShortenUrl.js
@@ -105,7 +105,7 @@ function orbisShorten(url, success, error) {
}
}
-const API_ORBIS = 'https://orbis.zone/api/builds/add';
+const API_ORBIS = 'https://api.orbis.zone/ships';
/**
* Upload to Orbis
* @param {object} ship The URL to shorten
From c3b0e8d949b82e91a53fe4a7aaae23338ce9620b Mon Sep 17 00:00:00 2001
From: willyb321
Date: Sun, 13 Oct 2019 07:39:05 +1100
Subject: [PATCH 04/66] fix announcements
---
src/app/Coriolis.jsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/app/Coriolis.jsx b/src/app/Coriolis.jsx
index 79ec5838..52f2cc08 100644
--- a/src/app/Coriolis.jsx
+++ b/src/app/Coriolis.jsx
@@ -115,7 +115,7 @@ export default class Coriolis extends React.Component {
try {
const announces = await request.get('https://api.orbis.zone/announcements')
.query({ coriolis: true });
- this.setState({ announcements: announces });
+ this.setState({ announcements: announces.body });
} catch (err) {
console.error(err)
}
@@ -394,13 +394,13 @@ export default class Coriolis extends React.Component {
*/
render() {
let currentMenu = this.state.currentMenu;
-
+ console.log(this.state)
return
{this.state.error ? this.state.error : this.state.page ? React.createElement(this.state.page, { currentMenu }) :
}
{this.state.modal}
From fc5db94f9aaf3cce90ab3ab751dc7b7677f45650 Mon Sep 17 00:00:00 2001
From: VAKazakov <47143965+VAKazakov@users.noreply.github.com>
Date: Mon, 4 Nov 2019 13:28:30 +0300
Subject: [PATCH 05/66] Localisation fixes
Changed ru localisation for params "ammo" and "clip" to in-game variants
https://media.discordapp.net/attachments/301454399597969409/640856772952850462/001.PNG
---
src/app/i18n/ru.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/i18n/ru.json b/src/app/i18n/ru.json
index b3edcff0..34850dfe 100644
--- a/src/app/i18n/ru.json
+++ b/src/app/i18n/ru.json
@@ -165,12 +165,12 @@
"external protection": "Внешняя защита",
"engagement range": "Боевое расстояние",
"total": "Всего",
- "ammo": "Боекомплект",
+ "ammo": "Макс. боекомплект",
"boot": "Время загрузки",
"brokenregen": "Скорость восстановления при пробое",
"burst": "Длина очереди",
"burstrof": "Скорострельность очереди",
- "clip": "Боекомплект",
+ "clip": "Размер боекомплекта",
"damage": "Урон",
"distdraw": "Тяга распределителя",
"duration": "Продолжительность",
From baace95f834f1c7bceb0d86aeaef14328aac903b Mon Sep 17 00:00:00 2001
From: Thomas Hurst
Date: Sat, 30 Nov 2019 01:19:00 +0000
Subject: [PATCH 06/66] Shield engineering should not modify max mass (#473)
---
src/app/shipyard/Module.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/shipyard/Module.js b/src/app/shipyard/Module.js
index 22466f93..fc702603 100755
--- a/src/app/shipyard/Module.js
+++ b/src/app/shipyard/Module.js
@@ -694,7 +694,7 @@ export default class Module {
let result = 0;
if (this['maxmass']) {
result = this['maxmass'];
- if (result && modified) {
+ if (result && modified && !ModuleUtils.isShieldGenerator(this['grp'])) {
let mult = this.getModValue('optmass') / 10000;
if (mult) { result = result * (1 + mult); }
}
From 9ebe5dc786b483c32a13efa58c6bc4022b1a36f0 Mon Sep 17 00:00:00 2001
From: William
Date: Wed, 15 Jan 2020 08:08:38 +1100
Subject: [PATCH 07/66] update paypal donation
---
src/app/pages/AboutPage.jsx | 23 +----------------------
1 file changed, 1 insertion(+), 22 deletions(-)
diff --git a/src/app/pages/AboutPage.jsx b/src/app/pages/AboutPage.jsx
index 9b0977f2..2040036f 100644
--- a/src/app/pages/AboutPage.jsx
+++ b/src/app/pages/AboutPage.jsx
@@ -105,28 +105,7 @@ export default class AboutPage extends Page {
, which will be used to keep Coriolis up to date and the servers
running.
-
+
);
}
From a77d991cf9259949368e048febe8659eb1c897e4 Mon Sep 17 00:00:00 2001
From: William
Date: Thu, 23 Jan 2020 07:28:59 +1100
Subject: [PATCH 08/66] Update Dockerfile
---
Dockerfile | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index b95ca63a..fc2aeacf 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,15 +1,12 @@
### STAGE 1: Build ###
FROM node:9.11.1-alpine as builder
-ARG branch=develop
-ENV BRANCH=$branch
+ENV BRANCH=master
WORKDIR /src/app
RUN mkdir -p /src/app/coriolis
RUN mkdir -p /src/app/coriolis-data
RUN apk add --update git
-COPY . /src/app/coriolis
-
RUN npm i -g npm
# Set up coriolis-data
@@ -21,6 +18,7 @@ RUN npm start
# Set up coriolis
WORKDIR /src/app/coriolis
+RUN git clone https://github.com/EDCD/coriolis.git .
RUN git checkout ${BRANCH}
RUN npm install --no-package-lock
RUN npm run build
From a3feb42fd777e15ed56b7a44dab2d3909d56d679 Mon Sep 17 00:00:00 2001
From: William
Date: Thu, 23 Jan 2020 07:29:20 +1100
Subject: [PATCH 09/66] Create Dockerfile.dev
---
Dockerfile.dev | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 Dockerfile.dev
diff --git a/Dockerfile.dev b/Dockerfile.dev
new file mode 100644
index 00000000..c8562528
--- /dev/null
+++ b/Dockerfile.dev
@@ -0,0 +1,33 @@
+### STAGE 1: Build ###
+FROM node:9.11.1-alpine as builder
+ENV BRANCH=develop
+WORKDIR /src/app
+RUN mkdir -p /src/app/coriolis
+RUN mkdir -p /src/app/coriolis-data
+
+RUN apk add --update git
+
+RUN npm i -g npm
+
+# Set up coriolis-data
+WORKDIR /src/app/coriolis-data
+RUN git clone https://github.com/EDCD/coriolis-data.git .
+RUN git checkout ${BRANCH}
+RUN npm install --no-package-lock
+RUN npm start
+
+# Set up coriolis
+WORKDIR /src/app/coriolis
+RUN git clone https://github.com/EDCD/coriolis.git .
+RUN git checkout ${BRANCH}
+RUN npm install --no-package-lock
+RUN npm run build
+
+
+### STAGE 2: Production Environment ###
+FROM fholzer/nginx-brotli as web
+COPY nginx.conf /etc/nginx/nginx.conf
+COPY --from=builder /src/app/coriolis/build /usr/share/nginx/html
+WORKDIR /usr/share/nginx/html
+EXPOSE 80
+CMD ["nginx", "-c", "/etc/nginx/nginx.conf", "-g", "daemon off;"]
From 3a63e08f80cfd2706bb8fbf4ff52ac144e84efe5 Mon Sep 17 00:00:00 2001
From: William
Date: Thu, 23 Jan 2020 07:29:42 +1100
Subject: [PATCH 10/66] Update docker-compose.yml
---
docker-compose.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index 7496605d..5ca32b79 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -22,7 +22,7 @@ services:
coriolis_dev:
image: edcd/coriolis:develop
build:
- dockerfile: Dockerfile
+ dockerfile: Dockerfile.dev
args:
branch: develop
restart: always
From b3f320e69f8f3990fe0b8513cd424a34af19d2bc Mon Sep 17 00:00:00 2001
From: William
Date: Thu, 23 Jan 2020 07:32:16 +1100
Subject: [PATCH 11/66] Update docker-compose.yml
---
docker-compose.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index 5ca32b79..fd052122 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,4 +1,4 @@
-version: '2.2'
+version: '2'
services:
coriolis_prod:
From 304ddf9ea8163713c62d385f19642b4071e7297d Mon Sep 17 00:00:00 2001
From: William
Date: Thu, 23 Jan 2020 07:33:23 +1100
Subject: [PATCH 12/66] Update docker-compose.yml
---
docker-compose.yml | 46 +++++++++++++++++-----------------------------
1 file changed, 17 insertions(+), 29 deletions(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index fd052122..8a60cb6a 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,55 +1,43 @@
version: '2'
services:
- coriolis_prod:
+ master:
image: edcd/coriolis:master
build:
dockerfile: Dockerfile
+ context: .
args:
branch: master
restart: always
volumes:
- - ./nginx.conf:/etc/nginx/nginx.conf
+ - ./nginx.conf:/etc/nginx/nginx.conf
networks:
- - web
+ - web
labels:
- - "traefik.docker.network=web"
- - "traefik.enable=true"
- - "traefik.basic.frontend.rule=Host:coriolis.io,coriolis.edcd.io"
- - "traefik.basic.port=80"
- - "traefik.basic.protocol=http"
+ - "traefik.docker.network=web"
+ - "traefik.enable=true"
+ - "traefik.basic.frontend.rule=Host:coriolis.io,coriolis.edcd.io"
+ - "traefik.basic.port=80"
+ - "traefik.basic.protocol=http"
- coriolis_dev:
+ develop:
image: edcd/coriolis:develop
build:
dockerfile: Dockerfile.dev
+ context: .
args:
branch: develop
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
networks:
- - web
+ - web
labels:
- - "traefik.docker.network=web"
- - "traefik.enable=true"
- - "traefik.basic.frontend.rule=Host:beta.coriolis.io,beta.coriolis.edcd.io"
- - "traefik.basic.port=80"
- - "traefik.basic.protocol=http"
-
- coriolis_dw2:
- image: edcd/coriolis:dw2
- restart: always
- volumes:
- - ./nginx.conf:/etc/nginx/nginx.conf
- networks:
- - web
- labels:
- - "traefik.docker.network=web"
- - "traefik.enable=true"
- - "traefik.basic.frontend.rule=Host:dw2.coriolis.io"
- - "traefik.basic.port=80"
- - "traefik.basic.protocol=http"
+ - "traefik.docker.network=web"
+ - "traefik.enable=true"
+ - "traefik.basic.frontend.rule=Host:beta.coriolis.io,beta.coriolis.edcd.io"
+ - "traefik.basic.port=80"
+ - "traefik.basic.protocol=http"
networks:
web:
From ab671b0af54bd7155977ecd8d13154dea1ae89ff Mon Sep 17 00:00:00 2001
From: William
Date: Thu, 23 Jan 2020 07:33:53 +1100
Subject: [PATCH 13/66] Update docker-compose.yml
---
docker-compose.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index 8a60cb6a..4fbaee70 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,4 +1,4 @@
-version: '2'
+version: '3.6'
services:
master:
From 14bb49a2bc8cd7f8a1bf8dcfef77a1a1d215eee0 Mon Sep 17 00:00:00 2001
From: William
Date: Sun, 1 Mar 2020 10:27:39 +1100
Subject: [PATCH 14/66] Update index.ejs
---
src/index.ejs | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/index.ejs b/src/index.ejs
index bf87243c..6fb49e96 100644
--- a/src/index.ejs
+++ b/src/index.ejs
@@ -3,6 +3,7 @@
Coriolis EDCD Edition
+
-
+
+
+
+
From 25d4520eee407e0243a02b67fee980d09855c0e2 Mon Sep 17 00:00:00 2001
From: William
Date: Sun, 1 Mar 2020 19:13:13 +1100
Subject: [PATCH 16/66] Update index.ejs
---
src/index.ejs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/index.ejs b/src/index.ejs
index ff3ca8b8..65d034d3 100644
--- a/src/index.ejs
+++ b/src/index.ejs
@@ -53,8 +53,8 @@
-
-
+
+
(adsbygoogle = window.adsbygoogle || []).push({});
+