mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-08 20:22:45 +01:00
a couple android ui tweaks
This commit is contained in:
parent
3dc0ca933b
commit
c72e26c192
@ -47,6 +47,9 @@ class MainActivity : AppCompatActivity(), AdvancedWebView.Listener {
|
|||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
|
|
||||||
|
// https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews
|
||||||
|
WebView.setWebContentsDebuggingEnabled(true); // TODO only dev builds
|
||||||
|
|
||||||
mWebView = findViewById<WebView>(R.id.webview) as AdvancedWebView
|
mWebView = findViewById<WebView>(R.id.webview) as AdvancedWebView
|
||||||
mWebView!!.setListener(this, this)
|
mWebView!!.setListener(this, this)
|
||||||
mWebView!!.setWebChromeClient(LoggingWebChromeClient())
|
mWebView!!.setWebChromeClient(LoggingWebChromeClient())
|
||||||
|
@ -28,17 +28,21 @@ class AndroidIndexPlugin {
|
|||||||
compiler.hooks.emit.tap(NAME, compilation => {
|
compiler.hooks.emit.tap(NAME, compilation => {
|
||||||
const files = chunkFileNames(compilation);
|
const files = chunkFileNames(compilation);
|
||||||
const page = html`
|
const page = html`
|
||||||
<html lang="en-US">
|
<html lang="en-US">
|
||||||
<head>
|
<head>
|
||||||
<title>Firefox Send</title>
|
<title>Firefox Send</title>
|
||||||
<link href="${files['app.css']}" rel="stylesheet">
|
<meta charset="utf-8" />
|
||||||
<script src="${files['vendor.js']}"></script>
|
<meta
|
||||||
<script src="${assets['public/locales/en-US/send.ftl']}"></script>
|
name="viewport"
|
||||||
<script src="${files['android.js']}"></script>
|
content="width=device-width, initial-scale=1"
|
||||||
</head>
|
/>
|
||||||
<body>
|
<link href="${files['app.css']}" rel="stylesheet" />
|
||||||
</body>
|
<script src="${files['vendor.js']}"></script>
|
||||||
</html>
|
<script src="${assets['public/locales/en-US/send.ftl']}"></script>
|
||||||
|
<script src="${files['android.js']}"></script>
|
||||||
|
</head>
|
||||||
|
<body></body>
|
||||||
|
</html>
|
||||||
`
|
`
|
||||||
.toString()
|
.toString()
|
||||||
.replace(/\n\s{6}/g, '\n');
|
.replace(/\n\s{6}/g, '\n');
|
||||||
|
@ -16,7 +16,12 @@ if (process.env.NODE_ENV === 'development') {
|
|||||||
} else {
|
} else {
|
||||||
options.plugins.push(
|
options.plugins.push(
|
||||||
require('@fullhuman/postcss-purgecss')({
|
require('@fullhuman/postcss-purgecss')({
|
||||||
content: ['./app/*.js', './app/ui/*.js'],
|
content: [
|
||||||
|
'./app/*.js',
|
||||||
|
'./app/ui/*.js',
|
||||||
|
'./android/*.js',
|
||||||
|
'./android/pages/*.js'
|
||||||
|
],
|
||||||
extractors: [
|
extractors: [
|
||||||
{
|
{
|
||||||
extractor: TailwindExtractor,
|
extractor: TailwindExtractor,
|
||||||
|
Loading…
Reference in New Issue
Block a user