Skip to content

Commit

Permalink
Merge pull request #3149 from oxen-io/clearnet
Browse files Browse the repository at this point in the history
Session v1.13.0
  • Loading branch information
Bilb authored Aug 12, 2024
2 parents 2f6d071 + 3cd55b1 commit f46ba60
Show file tree
Hide file tree
Showing 441 changed files with 11,380 additions and 10,141 deletions.
17 changes: 15 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
'airbnb-base',
'prettier',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
Expand Down Expand Up @@ -79,7 +79,7 @@ module.exports = {
// make imports without file extensions
'import/extensions': ['warn', 'never'],

// NOTE Remove this line when debugging cyclic dependencies
// NOTE Comment out this line when debugging cyclic dependencies / circular imports
'import/no-cycle': 'off',

// Prettier overrides:
Expand Down Expand Up @@ -122,6 +122,19 @@ module.exports = {
ignoreRegExpLiterals: true,
},
],
'no-restricted-imports': [
'error',
{
paths: [
// There is an issue with the current version of react-use where it requires an arbitrary 'Locale' package on the window object which causes random app crashes on startup in some cases
{
name: 'react-use',
message:
"Don't import from 'react-use' directly. Please use a default import for each hook from 'react-use/lib' instead.",
},
],
},
],
},
overrides: [
{
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
branches:
- clearnet
- unstable
- release/
pull_request:
branches:
- clearnet
- unstable
- release/
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- clearnet
- unstable
- unstable1
- release/

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
7 changes: 7 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"exit": true,
"spec": ["ts/test/**/*_test.js"],
"require": "jsdom-global/register",
"timeout": "10000",
"recursive": true
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Please search for any [existing issues](https://github.com/oxen-io/session-deskt

## Supported platforms

Session requires Windows 10 or later, macOS Catalina (10.15) or later, or a linux distribution with glibc 2.28 or later like Debian 10 or Ubuntu 20.04.
Session requires Windows 10 or later, macOS Monterey (12) or later, or a linux distribution with glibc 2.28 or later like Debian 10 or Ubuntu 20.04.

## Build instruction

Expand Down
1,084 changes: 554 additions & 530 deletions _locales/en/messages.json

Large diffs are not rendered by default.

200 changes: 100 additions & 100 deletions _locales/tr/messages.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
script-src 'self' 'unsafe-inline';
style-src 'self' 'unsafe-inline';"
/>
<!-- Load first to prevent font swapping on start -->
<link href="stylesheets/fonts.css" rel="stylesheet" type="text/css" />
<link href="stylesheets/dist/manifest.css" rel="stylesheet" type="text/css" />
</head>

Expand Down
8 changes: 3 additions & 5 deletions about_preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

const { ipcRenderer } = require('electron');
const url = require('url');
const os = require('os');
const i18n = require('./ts/util/i18n');

const config = url.parse(window.location.toString(), true).query;
const { locale } = config;
const localeMessages = ipcRenderer.sendSync('locale-data');

window.React = require('react');
window.ReactDOM = require('react-dom');

window.theme = config.theme;
window.i18n = i18n.setupi18n(locale, localeMessages);

window.getOSRelease = () =>
`${os.type()} ${os.release()}, Node.js ${config.node_version} ${os.platform()} ${os.arch()}`;
window.getEnvironment = () => config.environment;
window.getVersion = () => config.version;
window.getCommitHash = () => config.commitHash;
Expand All @@ -28,6 +28,4 @@ window.Signal = {
},
};

window.closeAbout = () => ipcRenderer.send('close-about');

require('./ts/util/logging');
6 changes: 4 additions & 2 deletions background.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand All @@ -25,13 +25,15 @@
/>
<title>Session</title>
<link href="images/session/session_icon.png" rel="shortcut icon" />
<!-- Load first to prevent font swapping on start -->
<link href="stylesheets/fonts.css" rel="stylesheet" type="text/css" />
<link href="stylesheets/dist/manifest.css" rel="stylesheet" type="text/css" />
</head>

<body id="body">
<div id="root">
<div class="app-loading-screen">
<div class="content session-full-logo">
<div class="session-full-logo">
<img src="images/session/brand.svg" class="session-brand-logo" />
<img src="images/session/session-text.svg" class="session-text-logo" />
</div>
Expand Down
2 changes: 2 additions & 0 deletions debug_log.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
script-src 'self' 'unsafe-inline';
style-src 'self' 'unsafe-inline';"
/>
<!-- Load first to prevent font swapping on start -->
<link href="stylesheets/fonts.css" rel="stylesheet" type="text/css" />
<link href="stylesheets/dist/manifest.css" rel="stylesheet" type="text/css" />
</head>

Expand Down
6 changes: 2 additions & 4 deletions debug_log_preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ const localeMessages = ipcRenderer.sendSync('locale-data');

window._ = require('lodash');

window.React = require('react');
window.ReactDOM = require('react-dom');

window.getVersion = () => config.version;
window.theme = config.theme;
window.i18n = i18n.setupi18n(locale, localeMessages);
Expand All @@ -29,7 +26,8 @@ window.getEnvironment = () => config.environment;

require('./ts/util/logging');

window.getOSRelease = () => `${os.type()} ${os.release} ${os.platform()}`;
window.getOSRelease = () =>
`${os.type()} ${os.release()}, Node.js ${config.node_version} ${os.platform()} ${os.arch()}`;
window.getCommitHash = () => config.commitHash;

window.closeDebugLog = () => ipcRenderer.send('close-debug-log');
Expand Down
Binary file added images/hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/party-popper.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 3 additions & 41 deletions images/session/session-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/session/session_shield.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f46ba60

Please sign in to comment.