Compare commits

..

1 Commits

Author SHA1 Message Date
Jake Archibald
eeb5e9f2ed 1.9.2 2020-07-02 14:26:42 +01:00
7 changed files with 11 additions and 27 deletions

View File

@@ -2,6 +2,3 @@ language: node_js
cache: npm cache: npm
script: npm run build script: npm run build
after_success: npm run sizereport after_success: npm run sizereport
os:
- linux
- windows

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "squoosh", "name": "squoosh",
"version": "1.11.3", "version": "1.9.2",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,7 +1,7 @@
{ {
"private": true, "private": true,
"name": "squoosh", "name": "squoosh",
"version": "1.11.3", "version": "1.9.2",
"license": "apache-2.0", "license": "apache-2.0",
"scripts": { "scripts": {
"start": "webpack-dev-server --host 0.0.0.0 --hot", "start": "webpack-dev-server --host 0.0.0.0 --hot",

View File

@@ -3,7 +3,7 @@ const escapeRE = require("escape-string-regexp");
module.exports = { module.exports = {
repo: "GoogleChromeLabs/squoosh", repo: "GoogleChromeLabs/squoosh",
path: "build/**/!(*.map)", path: "build/**/!(*.map)",
branch: "dev", branch: "master",
findRenamed(path, newPaths) { findRenamed(path, newPaths) {
const nameParts = /^(.+\.)[a-f0-9]+(\..+)$/.exec(path); const nameParts = /^(.+\.)[a-f0-9]+(\..+)$/.exec(path);
if (!nameParts) return; if (!nameParts) return;

View File

@@ -41,7 +41,7 @@ const demos = [
}, },
]; ];
const installButtonSource = 'introInstallButton-Purple'; const installButtonSource = 'introInstallButton';
interface Props { interface Props {
onFile: (file: File | Fileish) => void; onFile: (file: File | Fileish) => void;
@@ -113,12 +113,7 @@ export default class Intro extends Component<Props, State> {
this.setState({ beforeInstallEvent: event }); this.setState({ beforeInstallEvent: event });
// Log the event. // Log the event.
const gaEventInfo = { ga('send', 'event', 'pwa-install', 'available');
eventCategory: 'pwa-install',
eventAction: 'promo-shown',
nonInteraction: true,
};
ga('send', 'event', gaEventInfo);
} }
@bind @bind
@@ -135,14 +130,7 @@ export default class Intro extends Component<Props, State> {
// Wait for the user to accept or dismiss the install prompt // Wait for the user to accept or dismiss the install prompt
const { outcome } = await beforeInstallEvent.userChoice; const { outcome } = await beforeInstallEvent.userChoice;
// Send the analytics data ga('send', 'event', 'pwa-install', installButtonSource, outcome);
const gaEventInfo = {
eventCategory: 'pwa-install',
eventAction: 'promo-clicked',
eventLabel: installButtonSource,
eventValue: outcome === 'accepted' ? 1 : 0,
};
ga('send', 'event', gaEventInfo);
// If the prompt was dismissed, we aren't going to install via the button. // If the prompt was dismissed, we aren't going to install via the button.
if (outcome === 'dismissed') { if (outcome === 'dismissed') {
@@ -216,7 +204,7 @@ export default class Intro extends Component<Props, State> {
<li><a href="https://github.com/GoogleChromeLabs/squoosh/">View the code</a></li> <li><a href="https://github.com/GoogleChromeLabs/squoosh/">View the code</a></li>
<li><a href="https://github.com/GoogleChromeLabs/squoosh/issues">Report a bug</a></li> <li><a href="https://github.com/GoogleChromeLabs/squoosh/issues">Report a bug</a></li>
<li> <li>
<a href="https://github.com/GoogleChromeLabs/squoosh/blob/dev/README.md#privacy"> <a href="https://github.com/GoogleChromeLabs/squoosh/blob/master/README.md#privacy">
Privacy Privacy
</a> </a>
</li> </li>

View File

@@ -175,12 +175,11 @@
&:hover, &:hover,
&:focus { &:focus {
background: #504488; background: #f5f5f5;
} }
background: #5D509E; background: #fff;
border: 1px solid #e8e8e8; border: 1px solid #e8e8e8;
color: #fff;
padding: 14px; padding: 14px;
font-size: 1.3rem; font-size: 1.3rem;

View File

@@ -1,7 +1,7 @@
{ {
"name": "Squoosh", "name": "Squoosh",
"short_name": "Squoosh", "short_name": "Squoosh",
"start_url": "/?utm_medium=PWA&utm_source=launcher", "start_url": "/",
"display": "standalone", "display": "standalone",
"orientation": "any", "orientation": "any",
"background_color": "#fff", "background_color": "#fff",
@@ -20,7 +20,7 @@
} }
], ],
"share_target": { "share_target": {
"action": "/?utm_medium=PWA&utm_source=share-target&share-target", "action": "/?share-target",
"method": "POST", "method": "POST",
"enctype": "multipart/form-data", "enctype": "multipart/form-data",
"params": { "params": {