-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from GoogleChrome/develop
Release 1.0.0-beta3
- Loading branch information
Showing
15 changed files
with
227 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Copyright 2021 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Cron Schedule | ||
|
||
on: | ||
schedule: | ||
- cron: '20 6 * * 1' | ||
|
||
jobs: | ||
|
||
lint-js: | ||
name: Lint JS | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: develop | ||
|
||
- name: Get npm cache directory | ||
id: npm-cache | ||
run: echo "::set-output name=dir::$(npm config get cache)" | ||
|
||
- name: Configure npm cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.npm-cache.outputs.dir }} | ||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-npm- | ||
- name: Install Node dependencies | ||
run: npm ci | ||
|
||
- name: Detect coding standard violations | ||
run: npm run lint | ||
|
||
deploy-staging: | ||
needs: [lint-js] | ||
name: Deploy Staging | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: develop | ||
|
||
- name: Get npm cache directory | ||
id: npm-cache | ||
run: echo "::set-output name=dir::$(npm config get cache)" | ||
|
||
- name: Configure npm cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.npm-cache.outputs.dir }} | ||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-npm- | ||
- name: Install Node dependencies | ||
run: npm ci | ||
|
||
- name: Build Assets | ||
run: npm run build | ||
|
||
- name: Deploy to Firebase | ||
uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}" | ||
expires: 30d | ||
projectId: "${{ secrets.FIREBASE_PROJECT_ID }}" | ||
channelId: staging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# Kino | ||
|
||
This is a sample media (VOD) app to demonstrate media functionality in the context of a Progressive Web App. | ||
This is a sample Video on demand (VOD) app to demonstrate media functionality in the context of a Progressive Web App (PWA). | ||
|
||
## Running the site locally | ||
|
||
|
@@ -14,7 +14,7 @@ Start by creating a new project from the [Firebase Console](https://console.fire | |
|
||
Clone this repository: | ||
|
||
git clone [email protected]:xwp/kino.git | ||
git clone [email protected]:GoogleChrome/kino.git | ||
|
||
Go to the project folder: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Copyright 2021 Google Inc. All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* @param {RouterContext} routerContext Context object passed by the Router. | ||
*/ | ||
export default (routerContext) => { | ||
const { | ||
mainContent, | ||
path, | ||
} = routerContext; | ||
|
||
mainContent.innerHTML = ` | ||
<style> | ||
ins { | ||
color: var(--accent-text); | ||
font-weight: normal; | ||
} | ||
</style> | ||
<div class="container"> | ||
<header class="page-header"> | ||
<h1>404. <ins>That’s an error.</ins></h1> | ||
<p>The requested URL <code>${path}</code> was not found on this server. <br><ins>That’s all we know.</ins></p> | ||
</header> | ||
</div> | ||
`; | ||
|
||
const meta = document.createElement('meta'); | ||
meta.name = 'robots'; | ||
meta.content = 'noindex'; | ||
document.head.appendChild(meta); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.