Some house keeping / cleanup
This commit is contained in:
parent
429ba28ca1
commit
d0e5924953
|
@ -1,4 +1,5 @@
|
|||
import { customElement, LitElement, property, html, css } from "lit-element";
|
||||
import { LitElement, html, css } from "lit";
|
||||
import { customElement, property } from "lit/decorators.js";
|
||||
import { until } from "lit-html/directives/until";
|
||||
import { toDataURL } from "qrcode";
|
||||
import "./spinner";
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
"module": "esnext",
|
||||
"strict": true
|
||||
},
|
||||
"include": ["src/**/*.ts", "types/**/*.ts", "../../node_modules/@polymer/lit-element/custom_typings/polymer.d.ts"],
|
||||
"include": ["src/**/*.ts", "types/**/*.ts"],
|
||||
"exclude": ["node_modules/**/*.ts"]
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ module.exports = {
|
|||
const iconPath = path.join(assetsDir, "app-icon.png");
|
||||
const { width } = await sharp(iconPath).metadata();
|
||||
const iosPadding = Math.floor(width / 10);
|
||||
const androidPadding = Math.floor(width * 0.7);
|
||||
const androidPadding = Math.floor(width * 0.5);
|
||||
const iosIcon = await sharp(iconPath)
|
||||
.flatten({ background: icon_background })
|
||||
.extend({
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -19,7 +19,6 @@
|
|||
"@padloc/app": "^4.0.0",
|
||||
"@padloc/core": "^4.0.0",
|
||||
"@webcomponents/webcomponentsjs": "^2.5.0",
|
||||
"lit-element": "^2.5.1",
|
||||
"webextension-polyfill-ts": "^0.25.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -29,16 +28,16 @@
|
|||
"file-loader": "^6.2.0",
|
||||
"html-webpack-plugin": "^5.3.1",
|
||||
"http-server": "^0.12.3",
|
||||
"raw-loader": "^4.0.2",
|
||||
"sharp": "^0.29.1",
|
||||
"style-loader": "^2.0.0",
|
||||
"ts-loader": "^9.2.2",
|
||||
"ts-node": "^10.0.0",
|
||||
"typescript": "^4.4.3",
|
||||
"webpack": "^5.38.1",
|
||||
"webpack-cli": "^4.7.0",
|
||||
"raw-loader": "^4.0.2"
|
||||
"webpack-cli": "^4.7.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "webpack"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ const { version } = require("../../package.json");
|
|||
const serverUrl = process.env.PL_SERVER_URL || `http://0.0.0.0:${process.env.PL_SERVER_PORT || 3000}`;
|
||||
const assetsDir = process.env.PL_ASSETS_DIR || "../../assets";
|
||||
|
||||
const { name, version: vendorVersion } = require(path.join(assetsDir, "manifest.json"));
|
||||
const { name, version: vendorVersion, build } = require(path.join(assetsDir, "manifest.json"));
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
|
@ -86,7 +86,8 @@ module.exports = {
|
|||
const jsonString = JSON.stringify(
|
||||
{
|
||||
...manifest,
|
||||
version,
|
||||
version: build,
|
||||
version_name: vendorVersion,
|
||||
name,
|
||||
description: `${name} Browser Extension`,
|
||||
},
|
||||
|
@ -99,7 +100,7 @@ module.exports = {
|
|||
size: () => jsonString.length,
|
||||
};
|
||||
|
||||
const baseIcon = await sharp(path.resolve(__dirname, assetsDir, "app-icon.svg")).resize({
|
||||
const baseIcon = await sharp(path.resolve(__dirname, assetsDir, "app-icon.png")).resize({
|
||||
width: 128,
|
||||
height: 128,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue