Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for OAuth 2.0 authorization code flow without requiring a custom button. #78

Open
wants to merge 99 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
f3165ff
Changed to a typescript project
devbaji May 14, 2022
78058de
useLibraryLoaded composible function added
devbaji May 14, 2022
5df757b
converted to typescript with extra features (beta)
devbaji May 15, 2022
b48e16f
googleSdkLoaded wrapper function added
devbaji May 15, 2022
3372c56
App.vue error fix
devbaji May 15, 2022
bc3e08e
Beta6 changes
devbaji May 15, 2022
fc5974b
fix: bundle errors typing errors
devbaji May 16, 2022
3fe09b7
feat: add logout function
devbaji May 16, 2022
d85a0ab
feat: update package version
devbaji May 16, 2022
6fd43f5
docs: comment docs fixes
devbaji May 17, 2022
a1e3c0e
feat: add error callbacks
devbaji May 17, 2022
b651db0
build: Bump plugin version to 2.0.0-beta.17
devbaji May 17, 2022
fbe71ee
fix: resolve doc comments not showing up issue
devbaji May 17, 2022
f9f56dc
fix: resolve popup always giving token
devbaji May 17, 2022
258dc97
build: Bump plugin version to 2.0.0-beta.21
devbaji May 17, 2022
f715612
fix: remove map files generated on build
devbaji May 18, 2022
d30dabe
fix: Resolve issues found in last round testing before moving to v2.0
devbaji May 18, 2022
91d7d17
docs: Version 2.0.0 release with updated docs
devbaji May 18, 2022
a0080bf
docs: Change minzipped badge to version 2.0.0
devbaji May 19, 2022
4a497c3
docs: Footer and header changes
devbaji May 19, 2022
7c56206
docs: Main page docs changes
devbaji May 19, 2022
0905f92
docs: NPM docs update
devbaji May 19, 2022
c485e42
chore: function parameter patches and docs changes
devbaji May 20, 2022
dc1706e
fix: sitemap issues
devbaji May 20, 2022
cd944e8
fix: minor bugs, complete docs
devbaji May 21, 2022
55bbc4d
feat: changes docs images
devbaji May 22, 2022
6d9530e
feat: Change button element acquisition from id to ref. (#2)
tghkuma May 23, 2022
1c08b4a
fix: remove uuidv4 and buttonId, resolve client-id undefined issue
devbaji May 23, 2022
93774a0
fix: remove unwanted Optional chaining operator
devbaji May 24, 2022
29e7e9e
docs: Changes in npm docs
devbaji May 27, 2022
492def2
docs: update npm docs
devbaji May 29, 2022
87e4a23
fix: resolve 'document not defined' error in nuxt3
devbaji Jun 18, 2022
0db569b
fix: Issue in some existing vue projects resolved
devbaji Jun 28, 2022
c2a33c0
fix: build fail using quasar-app-extension-ssg resolved
devbaji Aug 20, 2022
8b549d7
fix: resolve typing error issues occuring while working in TypeScript…
rnBAJI Feb 10, 2023
b85cb31
fix: Add missing error callback (#23)
glejeune Mar 9, 2023
eea544a
docs: Broken links in docs updated
rnBAJI Mar 9, 2023
c97e71c
feat: New version, changes from glejeune and link updates in docs
rnBAJI Mar 9, 2023
c14cec8
fix: Catch the error callbacks from login popups (Code/Token Model)
rnBAJI Jun 20, 2023
299829f
fix: Wrong JSDoc comment for autoLogin
rnBAJI Jun 25, 2023
dbab6dc
feat: Show warning if popupType options is passed without a custom bu…
rnBAJI Jun 25, 2023
ec172fd
fix: Remove unecessary warning in console
rnBAJI Jul 5, 2023
46b8b47
docs: Change url's in docs to reflect, git username change
rnBAJI Aug 22, 2023
39f387c
fix: Correct sitemap lastmod value
rnBAJI Aug 22, 2023
ec92037
2.0.20
rnBAJI Aug 22, 2023
49b7343
fix: Fix 'api-loading' class issue and set default value of 'use_fedc…
rnBAJI Sep 18, 2023
a50cf72
docs: Add donate buttons
rnBAJI Sep 19, 2023
a8d2b56
docs: Fix broken images
rnBAJI Sep 19, 2023
3da589b
Npm donate image bug fix
rnBAJI Sep 19, 2023
f522504
docs: Npm donate image bug fix
rnBAJI Sep 19, 2023
5c0fdb6
Merge branch 'master' of github.com:yobaji/vue3-google-login
rnBAJI Sep 19, 2023
e6d0e15
docs: fix broken link (#47)
lucasrmendonca Oct 18, 2023
12ce1ca
fix: Add dist folder to npm
rnBAJI Oct 27, 2023
1d24cd3
docs: Add search feature, add more details to googleLogout function
rnBAJI Feb 24, 2024
c16d160
fix: Remove [GSI_LOGGER] warning, remove onNotification callback
rnBAJI Mar 9, 2024
8d462ef
Docs: Broken npm stats badge update
devbaji Jul 14, 2024
50e8349
fix: Stop running the plugin on server side and throw error, update d…
devbaji Jul 27, 2024
1305cfd
fix: Error in ssr apps like quasar. Added docs on no-ssr support
devbaji Jul 27, 2024
42ec84c
docs: Mistake correction in nuxt 3 section
devbaji Jul 27, 2024
f82edb0
Added Vike example for SSR (#65)
TimJohns Aug 4, 2024
e6a8e15
fix: Resolve issue #37 CDN versions fail
devbaji Aug 9, 2024
cf689ac
fix: Filename of cjs build correction
devbaji Aug 9, 2024
ce81770
docs: fix example function errors in documentation (#66)
wsw2000 Aug 9, 2024
50e6781
feat: Added github action yml file
devbaji Aug 13, 2024
301845c
test: Update README.md to test docs build
devbaji Aug 13, 2024
672ebe6
fix: Workflow error on copying docs build
devbaji Aug 13, 2024
fabcbb2
Merge branch 'master' of github.com:devbaji/vue3-google-login
devbaji Aug 13, 2024
44719df
test: Update README.md to test docs build
devbaji Aug 13, 2024
af36f7c
fix: Workflow error on copying docs build
devbaji Aug 13, 2024
e602da1
test: Update README.md to test docs build
devbaji Aug 13, 2024
802dddd
fix: Workflow error on copying docs build
devbaji Aug 13, 2024
02f3ade
test: Update README.md to test docs build
devbaji Aug 13, 2024
b457869
docs: Add cdn script link to the package
devbaji Aug 13, 2024
03aec58
fix: Remove "deprecated Node.js version" warning on docs deployment
devbaji Aug 15, 2024
8699c1b
fix: Bundlephobia badge image, remove hardcoded version number
devbaji Aug 15, 2024
c209ebe
fix: Remove "deprecated Node.js version" update to actions/checkout@v4
devbaji Aug 15, 2024
6a89b52
test: Checking docs deployment on push
devbaji Aug 15, 2024
1f32345
fix: Remove "deprecated Node.js version" update to actions/setup-node@v4
devbaji Aug 15, 2024
b49bc65
test: Checking docs deployment on push
devbaji Aug 15, 2024
b5d4c0e
fix: Should trigger docs deployment on any change in documentation fo…
devbaji Aug 15, 2024
5d71f89
test: Checking docs deployment on push
devbaji Aug 15, 2024
f2cd60a
feat: Create NPM publish action on github
devbaji Aug 15, 2024
be73947
docs: Npm page docs update with CDN installation step
devbaji Aug 15, 2024
b0554b3
fix: NPM publish on package.json change
devbaji Aug 15, 2024
d1d81c7
fix: Action job name changes and version bump
devbaji Aug 15, 2024
93b07e3
test: Action trigger on version bump
devbaji Aug 15, 2024
ca58ecb
test: Action trigger on version bump
devbaji Aug 15, 2024
df3db1c
test: Action trigger on version bump
devbaji Aug 15, 2024
65ab3c9
test: Action trigger on version bump, set diff-search to true
devbaji Aug 15, 2024
61f864a
docs: Update package.json description text
devbaji Aug 15, 2024
a188a23
ci: Publish on package bump only in master branch
devbaji Aug 15, 2024
b0082b4
fix: Dist directory missing from package, docs updates
devbaji Aug 16, 2024
ccab012
Support for custom scopes.
Jan 22, 2025
5b90a66
Reverted unnecessary change.
Jan 23, 2025
a004c7a
Added support for Authorization codes via constructed button.
Jan 23, 2025
3b0f4bf
Adding support files.`
Jan 23, 2025
efe2c3c
feat: add support for authorization code flow with custom button logic
Jan 24, 2025
bf29709
Setting Build Script
Jan 24, 2025
b89d376
Added documentation to reflect the proposed change.`
Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish to npm

on:
push:
paths:
- 'package.json'
branches:
- master

jobs:
publish-package:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check for version bump
id: version_check
uses: EndBug/[email protected]
with:
diff-search: true

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Log when changed
if: steps.version_check.outputs.changed == 'true'
run: 'echo "Version change found in commit ${{ steps.version_check.outputs.commit }}! New version: ${{ steps.version_check.outputs.version }} (${{ steps.version_check.outputs.type }})"'

- name: Log when unchanged
if: steps.version_check.outputs.changed == 'false'
run: 'echo "No version change :/"'

- name: Install dependencies
if: steps.version_check.outputs.changed == 'true'
run: npm install

- name: Create build
if: steps.version_check.outputs.changed == 'true'
run: npm run build

- name: Publish to npm
if: steps.version_check.outputs.changed == 'true'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
74 changes: 74 additions & 0 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Update Documentation

on:
push:
paths:
- 'documentation/**'
branches:
- master

jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout vue3-google-login
uses: actions/checkout@v4
with:
repository: devbaji/vue3-google-login
path: vue3-google-login

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: |
cd vue3-google-login
npm ci
continue-on-error: false

- name: Build documentation
run: |
cd vue3-google-login
npm run docs:build
continue-on-error: false

- name: Debug - List build directory
run: |
echo "Vue3-google-login build directory contents:"
ls -la vue3-google-login/documentation/.vuepress/dist

- name: Checkout personal repo
uses: actions/checkout@v4
with:
repository: devbaji/devbaji.github.io
path: personal-repo
token: ${{ secrets.PERSONAL_REPO_TOKEN }}

- name: Clear existing documentation
run: |
rm -rf personal-repo/vue3-google-login/*
continue-on-error: false

- name: Copy built files
run: |
mkdir -p personal-repo/vue3-google-login
cp -R vue3-google-login/documentation/.vuepress/dist/* personal-repo/vue3-google-login/
continue-on-error: false

- name: Commit and push changes
run: |
cd personal-repo
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Update vue3-google-login documentation" || echo "No changes to commit"
git push
continue-on-error: false

- name: Check for errors
if: failure()
run: |
echo "The workflow failed. Please check the logs for more information."
exit 1
12 changes: 1 addition & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local
documentation/.vuepress/.cache
documentation/.vuepress/.temp
.DS_Store
Loading