Skip to content

Commit

Permalink
test with webpack - not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Mar 31, 2022
1 parent 2dfd09a commit 280cc49
Show file tree
Hide file tree
Showing 87 changed files with 6,684 additions and 843 deletions.
47 changes: 47 additions & 0 deletions OS.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions background.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@

<script type="text/javascript" src="js/components.js"></script>
<script type="text/javascript" src="js/libtextsecure.js"></script>

<script type="text/javascript" src="js/views/react_wrapper_view.js"></script>
<script type="text/javascript" src="js/views/whisper_view.js"></script>
</head>

<body>
Expand All @@ -42,6 +39,6 @@
</div>
</div>

<script type="text/javascript" src="dist/js/electron-renderer.js"></script>
<script type="text/javascript" src="dist/electron_renderer.js"></script>
</body>
</html>
12 changes: 0 additions & 12 deletions js/debug_log_start.js

This file was deleted.

7 changes: 0 additions & 7 deletions js/password_start.js

This file was deleted.

25 changes: 0 additions & 25 deletions js/views/password_view.js

This file was deleted.

71 changes: 0 additions & 71 deletions js/views/react_wrapper_view.js

This file was deleted.

6 changes: 0 additions & 6 deletions js/views/whisper_view.js

This file was deleted.

68 changes: 0 additions & 68 deletions js/views/whisper_view.ts

This file was deleted.

1 change: 1 addition & 0 deletions libtextsecure/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"main": "dist/electron_main.js",
"scripts": {
"postinstall": "yarn patch-package && yarn electron-builder install-app-deps",
"start-prod": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod$MULTI electron .",
"start-prod": "cross-env NODE_ENV=dev NODE_APP_INSTANCE=devprod$MULTI electron .",
"grunt": "yarn clean-transpile && grunt",
"generate": "yarn grunt --force",
"build-release": "run-script-os",
Expand Down Expand Up @@ -113,6 +113,10 @@
"styled-components": "5.1.1",
"uuid": "3.3.2"
},
"peerDependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@playwright/test": "^1.16.3",
"@types/backbone": "^1.4.2",
Expand All @@ -138,6 +142,7 @@
"@types/linkify-it": "2.0.3",
"@types/lodash": "4.14.106",
"@types/mocha": "5.0.0",
"@types/mustache": "^4.1.2",
"@types/node-fetch": "^2.5.7",
"@types/pify": "3.0.2",
"@types/rc-slider": "^8.6.5",
Expand All @@ -162,6 +167,7 @@
"electron": "^17.1.2",
"electron-builder": "22.8.0",
"electron-notarize": "^0.2.0",
"esbuild": "^0.14.29",
"eslint": "4.14.0",
"eslint-config-airbnb-base": "12.1.0",
"eslint-config-prettier": "2.9.0",
Expand Down Expand Up @@ -287,7 +293,7 @@
"stylesheets/*.css",
"!js/register.js",
"js/views/standalone_registration_view.js",
"preload.js",
"dist/preload.bundled.js",
"about_preload.js",
"settings_preload.js",
"debug_log_preload.js",
Expand Down
34 changes: 15 additions & 19 deletions password.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<html>
<head>
<meta http-equiv="Content-Security-Policy"
content="default-src 'none';
<head>
<meta
http-equiv="Content-Security-Policy"
content="default-src 'none';
child-src 'self';
connect-src 'self' https: wss:;
font-src 'self';
Expand All @@ -12,24 +13,19 @@
object-src 'none';
script-src 'self';
style-src 'self' 'unsafe-inline';"
>
<link href="stylesheets/manifest.css" rel="stylesheet" type="text/css" />
<style>
</style>
/>
<link href="stylesheets/manifest.css" rel="stylesheet" type="text/css" />
<style></style>


<script type='text/javascript' src='js/components.js'></script>
<script type='text/javascript' src='js/views/whisper_view.js'></script>
<script type='text/javascript' src='js/views/react_wrapper_view.js'></script>
<script type='text/javascript' src='js/views/password_view.js'></script>
</head>
<body>
<div class='app-loading-screen'>
<div class="content session-full-logo">
<script type="text/javascript" src="js/components.js"></script>
</head>
<body>
<div class="app-loading-screen">
<div class="content 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>
</div>
</div>
<script type='text/javascript' src='js/password_start.js'></script>
</body>
<script type="text/javascript" src="js/password_start.js"></script>
</body>
</html>
Loading

0 comments on commit 280cc49

Please sign in to comment.