Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/v0.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchikikomori committed Apr 11, 2022
2 parents 2660273 + 5190bba commit 1987ac4
Show file tree
Hide file tree
Showing 12 changed files with 263 additions and 249 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main, develop ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ feature/*, release/*, hotfix/* ]
schedule:
- cron: '41 0 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 16.x]
node-version: [16.x]
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- feature/*
- release/*
- hotfix/*
- develop
jobs:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ dist

# End of https://www.toptal.com/developers/gitignore/api/node,yarn

.DS_Store

public/**/*
!public/.gitinclude
!public/*.html
!public/img/*
!public/img/.gitinclude
19 changes: 13 additions & 6 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
# Mini Program Sample
# Mini Program's WebView Mocking Server

For GCash & other AliPay-powered Mini Programs

## Testing

![Scan QR to WebView](public/img/test1.gif)
![WebView tests](public/img/test3.gif)

### Requirements

- NodeJS 12
- pnpm (run `npm install -g pnpm`)

### Run

- Run `pnpm run index`
- Run `pnpm run server`

### Building

- Run `pnpm run build`
- Also run `pnpm run build/css` for CSS

## To-Dos

- Create a separate script for Mini Program hooks
- Trade Pay
- Implement setting Auth Code seamless
- Implement setting fake Access Token
Please refer to issues tab on Github
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gcash-miniprogram-webview-sample",
"version": "0.1.3",
"description": "Testing GCash Mini Program hooks",
"version": "0.1.4",
"description": "Mini Program's WebView Mocking Server, for GCash & other AliPay-powered Mini Programs",
"private": true,
"scripts": {
"server": "pnpm run build/css && node server.js",
Expand Down
Binary file added public/img/test1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/test2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/test3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 5 additions & 7 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<section class="section">
<div class="container">
<h1 class="title">
Hello World.... and GCash!
Mini Program Test
</h1>
<p class="subtitle">
Styled with <a href="https://bulma.io/" target="_blank"><strong>Bulma</strong></a>!
Expand All @@ -25,12 +25,10 @@ <h1 class="title">
</p>
<div class="buttons">
<a role="button" class="button is-info is-light" id="onClick">Alert</a>
<a role="button" class="button is-primary is-light" id="onClickToMenu">Go to Menu</a>
<a role="button" class="button is-primary is-light" id="onClickToCart">Go to Cart</a>
<a role="button" class="button is-info is-light" id="onClickToRefresh">Refresh page</a>
<a role="button" class="button is-info is-light" id="onClickToLogin">Login</a>
<a role="button" class="button is-info is-light" id="onClickToAuth">Get Auth Code</a>
<a role="button" class="button is-danger is-light" id="onClickToPay">Pay (Unstable)</a>
<a role="button" class="button" id="onClickToFirst" disabled>Go to simulated e-commerce site (Coming soon)</a>
<a role="button" class="button is-info is-light" id="onClickToRefresh">Refresh page (non-native)</a>
<a role="button" class="button is-info is-light" id="onClickToAuth">Get Auth Code (from GCash)</a>
<a role="button" class="button is-danger is-light" id="onClickToPay" disabled>Pay (Coming soon)</a>
<a role="button" class="button is-primary" href="./second.html">Next Page</a>
</div>
<div id="modal" class="modal">
Expand Down
4 changes: 2 additions & 2 deletions public/second.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<section class="section">
<div class="container">
<h1 class="title">
Hello World 2.... and GCash!
Mini Program Test
</h1>
<p class="subtitle">
Styled with <a href="https://bulma.io/" target="_blank"><strong>Bulma</strong></a>!
Expand All @@ -25,7 +25,7 @@ <h1 class="title">
</p>
<div class="buttons">
<a role="button" class="button is-primary is-light" id="onClickToFirst">Go to first page</a>
<a role="button" class="button is-primary" href="../">Go to first page (mode 2)</a>
<a role="button" class="button" id="onClickToFirst" disabled>Go to simulated e-commerce site (Coming soon)</a>
</div>
<div id="modal" class="modal">
<div class="modal-background"></div>
Expand Down
Loading

0 comments on commit 1987ac4

Please sign in to comment.