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

Attempting to publish wix-forum subscribe directly from autodocs if not polluted #2938

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e2243b0
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Feb 7, 2023
e4f3052
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Feb 8, 2023
1156bf6
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Feb 8, 2023
c51d9b4
remove universal modules note
wix-docs-feds Feb 15, 2023
03c4078
data error codes fix
TWSingleSource Feb 27, 2023
55f3e92
new wix routers intro
TWSingleSource Mar 2, 2023
708fe80
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Mar 3, 2023
81e122e
updated ecom updateCheckout example
wix-docs-feds Mar 5, 2023
12675f7
Moved sender-details to email-marketing-v2.
wix-docs-feds Mar 6, 2023
628fb19
Fix dev preview (#1734)
adamfri Mar 13, 2023
48f5346
Updated Workflows for doc bug day.
wix-docs-feds Mar 19, 2023
8feef35
Revert adam changes
admasodaniel Mar 20, 2023
c1ee85a
Add linkable ids to the wix data error codes
TWSingleSource Mar 28, 2023
b26ecf1
intro fix
wix-docs-feds Apr 10, 2023
714cee0
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Apr 24, 2023
c9ee4d5
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Apr 24, 2023
77ea5ac
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Apr 24, 2023
6091bf3
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Apr 24, 2023
a165005
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Apr 24, 2023
77b67bf
form release
wix-docs-feds Apr 30, 2023
755b0bb
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Jul 12, 2023
b217745
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Jul 12, 2023
3eee5aa
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Sep 27, 2023
50e4b7b
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Oct 25, 2023
19dec31
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Nov 15, 2023
3e651b9
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Nov 15, 2023
f21cf9e
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Jan 25, 2024
2330acf
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Jan 25, 2024
3deef37
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Jan 26, 2024
443d399
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Feb 5, 2024
b07c413
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Feb 12, 2024
73e55dd
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Feb 13, 2024
1fa1a6d
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Mar 21, 2024
aa9197c
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Mar 25, 2024
ca8a5b4
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Mar 26, 2024
a95b5a1
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Mar 27, 2024
43320fc
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Mar 27, 2024
624b4ac
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Apr 11, 2024
122765c
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Apr 12, 2024
f75fffe
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Apr 18, 2024
9f23702
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Apr 19, 2024
2d55e41
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Apr 19, 2024
3627723
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Jun 3, 2024
1928e29
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Jun 3, 2024
c5fc655
Auto commit to autodocs-wix-forum-v2 from WixDocs Server
wix-docs-feds Jun 3, 2024
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
43 changes: 43 additions & 0 deletions .github/workflows/buildDevPreview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name : build_dev_preview

on:
pull_request:
types: [ closed ]

jobs:
build-dev-preview:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Build Dev Preview List
run : |
npm install get-all-files
git config user.email "[email protected]"
git config user.name "Adam Friedmann"
git checkout -b auto-dev-preview-update-${{github.head_ref}}
node scripts/buildDevPreviewList.mjs
git add guides/developer-preview.md
DIFF=$(git status --porcelain)
if [[ "$DIFF" == *"developer-preview.md"* ]]; then
git commit -m "New Dev Preview List"
git push --set-upstream origin auto-dev-preview-update-${{github.head_ref}} --force
echo "changes_pushed=yes" >> $GITHUB_ENV
echo "branch_name=auto-dev-preview-update-${{github.head_ref}}" >> $GITHUB_ENV
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: slackapi/[email protected]
if: ${{ env.changes_pushed == 'yes' }}
with:
payload: |
{
"branch_name" : "${{ env.branch_name }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
44 changes: 44 additions & 0 deletions .github/workflows/menuEditorSync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name : build_dev_preview

on:
schedule:
- cron: '0 8 * * *'

jobs:
build-dev-preview:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Build Dev Preview List
run : |
npm install get-all-files
npm install node-fetch
git config user.email "[email protected]"
git config user.name "Adam Friedmann"
git checkout -b menu-editor-sync
node scripts/buildDevPreviewList.mjs
git add guides/developer-preview.md
DIFF=$(git status --porcelain)
if [[ "$DIFF" == *"developer-preview.md"* ]]; then
git commit -m "New dev preview list - menu editor change"
git push --set-upstream origin menu-editor-sync --force
echo "changes_pushed=yes" >> $GITHUB_ENV
echo "branch_name=menu-editor-sync" >> $GITHUB_ENV
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: slackapi/[email protected]
if: ${{ env.changes_pushed == 'yes' }}
with:
payload: |
{
"branch_name" : "${{ env.branch_name }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
47 changes: 47 additions & 0 deletions .github/workflows/syncMenuEditor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: sync_menu_editor

on:
schedule:
- cron: '0 8 * * *'

jobs:
check-menu-editor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Sync Menu Editor
run: |
npm install node-fetch
npm install htmlparser2
npm install cheerio
git config user.email "[email protected]"
git config user.name "Adam Friedmann"
git checkout -b menu-editor-sync
node scripts/getHiddenItems.mjs
git add scripts/hiddenItems.json
git status --porcelain
DIFF=$(git status --porcelain)
if [[ "$DIFF" == *"hiddenItems.json"* ]]; then
npm install get-all-files
node scripts/buildDevPreviewList.mjs
git add guides/developer-preview.md
git commit -m "Syncing with hidden items in the menu editor"
git push --set-upstream origin menu-editor-sync --force
echo "changes_pushed=yes" >> $GITHUB_ENV
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: slackapi/[email protected]
if: ${{ env.changes_pushed == 'yes' }}
with:
payload: |
{
"branch_name" : "menu-editor-sync"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
142 changes: 142 additions & 0 deletions dollar-widget/$widget.service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{ "name": "$widget",
"mixes": [],
"labels":
[ "new" ],
"location":
{ "lineno": 1,
"filename": "$widget.js" },
"docs":
{ "summary": "The `$widget` namespace contains functionality for working with your Blocks widget's API from within the widget code.",
"description":
[ "> **This namespace is available only in Wix Blocks widget code** ",
"> [Wix Blocks](https://support.wix.com/en/article/wix-blocks-check-out-our-articles) is a workspace for building Wix apps. It is currently a Beta version, open to a limited number of users.",
"",
"Blocks widgets can expose a [widget API](https://support.wix.com/en/article/wix-blocks-about-the-widget-api), letting you add properties, events, and functions to your widget.",
"The `$widget` namespace provides functionality for working with to your widget's API from within the widget code." ],
"links": [],
"examples": [],
"extra":
{ } },
"properties":
[ { "name": "props",
"labels": [],
"get": true,
"set": true,
"type": "Object",
"locations":
[ { "lineno": 13,
"filename": "$widget.js" },
{ "lineno": 26,
"filename": "$widget.js" } ],
"docs":
{ "summary": "Sets or gets the [widget's properties](https://support.wix.com/en/article/wix-blocks-widget-api-properties).",
"description":
[ "The `props` property is an object containing all of the widget's properties." ],
"links": [],
"examples":
[ { "title": "Get a widget's properties",
"body":
[ "$w('#text1').text = $widget.props.shoe.size; // \"43\"" ],
"extra":
{ } },
{ "title": "Set a widget's properties",
"body":
[ "$widget.props = { saleIndicator: \"No Sale\" };" ],
"extra":
{ } } ],
"extra":
{ } },
"extra":
{ } } ],
"operations":
[ { "name": "fireEvent",
"labels": [],
"nameParams": [],
"params":
[ { "name": "eventName",
"type": "string",
"doc": "The name of te event to be fired." },
{ "name": "data",
"type": "Object",
"doc": "A data object that is passed to the event handler." } ],
"ret":
{ "type": "void" },
"locations":
[ { "lineno": 46,
"filename": "$widget.js" } ],
"docs":
{ "summary": "Fires an event that is defined in the Widget API.",
"description":
[ "The `fireEvent()` function fires a widget event, which can then be handled from outside the widget (by code in a parent widget or a site page).",
"When using the widget's API, the event is named `on<EventName>`, for example, `onAddedToCart`." ],
"links": [],
"examples":
[ { "title": "Fire a widget event",
"body":
[ "$w(`#button1`).onClick(() => {",
" $widget.fireEvent(`addedToCart`, {productId: product.id, customerId: customer.id})",
"});" ],
"extra":
{ } } ],
"extra":
{ } },
"extra":
{ } },
{ "name": "onPropsChanged",
"labels": [],
"nameParams": [],
"params":
[ { "name": "handler",
"type": "$widget.onPropsChangedHandler",
"doc": "The name of the function or\n the function expression to run when the value of a widget property is changed." } ],
"ret":
{ "type": "any" },
"locations":
[ { "lineno": 33,
"filename": "$widget.js" } ],
"docs":
{ "summary": "Adds an event handler that runs when the value of a widget property is changed.",
"description":
[ "A widget receives an `onPropsChanged` event when one or more of its properties is changed via its API." ],
"links": [],
"examples":
[ { "title": "Load updated data when a widget's property is changed",
"body":
[ "$widget.onPropsChanged((oldProps, newProps) => {",
" loadProductData(newProps.productId);",
" loadCustomerData(newProps.customerId);",
"});" ],
"extra":
{ } } ],
"extra":
{ } },
"extra":
{ } } ],
"callbacks":
[ { "name": "onPropsChangedHandler",
"labels": [],
"nameParams": [],
"params":
[ { "name": "oldProps",
"type": "Object",
"doc": "The old widget properties." },
{ "name": "newProps",
"type": "Object",
"doc": "The new widget properties." } ],
"ret":
{ "type": "void" },
"locations":
[ { "lineno": 59,
"filename": "$widget.js" } ],
"docs":
{ "description":
[ "Handles events fired when a widget's properties are changed." ],
"links": [],
"examples": [],
"extra":
{ } },
"extra":
{ } } ],
"messages": [],
"extra":
{ } }
Binary file added media/.DS_Store
Binary file not shown.
Binary file added media/confirmator_flow.png
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 media/section_divider.png
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 media/tooltip-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading