Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit 2ab9599

Browse files
authored
Merge pull request #2187 from RainLoop/road-to-the-os
Road to the MIT
2 parents 13d05dc + aa5d3fc commit 2ab9599

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+392
-2283
lines changed

.docker/nginx/ssl.sh

100644100755
File mode changed.

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ module.exports = {
1212
es6: true
1313
},
1414
globals: {
15-
'RL_COMMUNITY': true,
1615
'RL_ES6': true
1716
},
1817
// http://eslint.org/docs/rules/

.github/workflows/builder.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626

2727
- run: yarn install --frozen-lockfile --check-files
2828
- run: yarn build
29-
- run: yarn build-pro
3029

3130
- name: Move all assets to release folder
3231
run: |

CONTRIBUTING.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,3 @@
2929

3030
1. Edit data/\_data_/\_default_/configs/application.ini
3131
2. Set 'cache_system_data' to Off
32-
33-
---
34-
35-
If you have any questions, open an issue or email [email protected].

LICENSE

Lines changed: 21 additions & 661 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ rl-watch-js:
6161

6262
rl-build:
6363
@docker compose run --no-deps --rm node gulp all
64-
rl-build-pro:
65-
@docker compose run --no-deps --rm node gulp all --pro
6664

6765
yarn-install:
6866
@docker compose run --no-deps --rm node yarn install

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Information about installing the product, check the [documentation page](http://
2222

2323
## License
2424

25-
**RainLoop Webmail (Community edition)** is released under
26-
**GNU AFFERO GENERAL PUBLIC LICENSE Version 3 (AGPL)**.
27-
http://www.gnu.org/licenses/agpl-3.0.html
25+
**RainLoop Webmail (Legacy edition)** is released under
26+
**MIT License**.
27+
https://choosealicense.com/licenses/mit/
2828

29-
Copyright (c) 2019 Rainloop Team
29+
Copyright (c) 2022 Rainloop Team

dev/App/Admin.js

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ import ko from 'ko';
44
import progressJs from 'progressJs';
55

66
import { root } from 'Common/Links';
7-
import { getNotification } from 'Common/Translator';
8-
import { StorageResultType, Notification } from 'Common/Enums';
9-
import { pInt, isNormal, isArray, inArray, isUnd } from 'Common/Utils';
7+
import { StorageResultType } from 'Common/Enums';
8+
import { pInt, isArray, isUnd } from 'Common/Utils';
109

1110
import * as Settings from 'Storage/Settings';
1211

1312
import AppStore from 'Stores/Admin/App';
1413
import CapaStore from 'Stores/Admin/Capa';
1514
import DomainStore from 'Stores/Admin/Domain';
1615
import PluginStore from 'Stores/Admin/Plugin';
17-
import LicenseStore from 'Stores/Admin/License';
1816
import PackageStore from 'Stores/Admin/Package';
1917
import CoreStore from 'Stores/Admin/Core';
2018
import Remote from 'Remote/Admin/Ajax';
@@ -150,40 +148,6 @@ class AdminApp extends AbstractApp {
150148
});
151149
}
152150

153-
/**
154-
* @param {boolean=} force = false
155-
*/
156-
reloadLicensing(force = false) {
157-
LicenseStore.licensingProcess(true);
158-
LicenseStore.licenseError('');
159-
Remote.licensing((result, data) => {
160-
LicenseStore.licensingProcess(false);
161-
if (StorageResultType.Success === result && data && data.Result && isNormal(data.Result.Expired)) {
162-
LicenseStore.licenseValid(true);
163-
LicenseStore.licenseExpired(pInt(data.Result.Expired));
164-
LicenseStore.licenseError('');
165-
LicenseStore.licensing(true);
166-
AppStore.prem(true);
167-
} else {
168-
if (
169-
data &&
170-
data.ErrorCode &&
171-
-1 < inArray(pInt(data.ErrorCode), [Notification.LicensingServerIsUnavailable, Notification.LicensingExpired])
172-
) {
173-
LicenseStore.licenseError(getNotification(pInt(data.ErrorCode)));
174-
LicenseStore.licensing(true);
175-
} else {
176-
if (StorageResultType.Abort === result) {
177-
LicenseStore.licenseError(getNotification(Notification.LicensingServerIsUnavailable));
178-
LicenseStore.licensing(true);
179-
} else {
180-
LicenseStore.licensing(false);
181-
}
182-
}
183-
}
184-
}, force);
185-
}
186-
187151
bootend(bootendCallback = null) {
188152
if (progressJs) {
189153
progressJs.end();

dev/Common/Globals.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ $hcont
2626

2727
export const startMicrotime = new window.Date().getTime();
2828

29-
/**
30-
* @type {boolean}
31-
*/
32-
export const community = RL_COMMUNITY;
33-
3429
/**
3530
* @type {?}
3631
*/

dev/Screen/Admin/Settings.js

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { SocialAdminSettings } from 'Settings/Admin/Social';
1212
import { PluginsAdminSettings } from 'Settings/Admin/Plugins';
1313
import { PackagesAdminSettings } from 'Settings/Admin/Packages';
1414
import { AboutAdminSettings } from 'Settings/Admin/About';
15+
import { BrandingAdminSettings } from 'Settings/Admin/Branding';
1516

1617
import { getApp } from 'Helper/Apps/Admin';
1718

@@ -27,16 +28,6 @@ class SettingsAdminScreen extends AbstractSettingsScreen {
2728
* @param {Function=} fCallback = null
2829
*/
2930
setupSettings(fCallback = null) {
30-
let branding = null,
31-
licensing = null;
32-
33-
if (RL_COMMUNITY) {
34-
branding = require('Settings/Admin/Branding').default;
35-
} else {
36-
branding = require('Settings/Admin/Prem/Branding').default;
37-
licensing = require('Settings/Admin/Prem/Licensing').default;
38-
}
39-
4031
addSettingsViewModel(
4132
GeneralAdminSettings,
4233
'AdminSettingsGeneral',
@@ -49,9 +40,7 @@ class SettingsAdminScreen extends AbstractSettingsScreen {
4940

5041
addSettingsViewModel(LoginAdminSettings, 'AdminSettingsLogin', 'TABS_LABELS/LABEL_LOGIN_NAME', 'login');
5142

52-
if (branding) {
53-
addSettingsViewModel(branding, 'AdminSettingsBranding', 'TABS_LABELS/LABEL_BRANDING_NAME', 'branding');
54-
}
43+
addSettingsViewModel(BrandingAdminSettings, 'AdminSettingsBranding', 'TABS_LABELS/LABEL_BRANDING_NAME', 'branding');
5544

5645
addSettingsViewModel(ContactsAdminSettings, 'AdminSettingsContacts', 'TABS_LABELS/LABEL_CONTACTS_NAME', 'contacts');
5746

@@ -68,10 +57,6 @@ class SettingsAdminScreen extends AbstractSettingsScreen {
6857

6958
addSettingsViewModel(PackagesAdminSettings, 'AdminSettingsPackages', 'TABS_LABELS/LABEL_PACKAGES_NAME', 'packages');
7059

71-
if (licensing) {
72-
addSettingsViewModel(licensing, 'AdminSettingsLicensing', 'TABS_LABELS/LABEL_LICENSING_NAME', 'licensing');
73-
}
74-
7560
addSettingsViewModel(AboutAdminSettings, 'AdminSettingsAbout', 'TABS_LABELS/LABEL_ABOUT_NAME', 'about');
7661

7762
runSettingsViewModelHooks(true);

0 commit comments

Comments
 (0)