Stackspin Wordpress Theme issueshttps://open.greenhost.net/stackspin/stackspin-wordpress-theme/-/issues2023-01-31T15:13:19Zhttps://open.greenhost.net/stackspin/stackspin-wordpress-theme/-/issues/11Add Newsletter sign-up page to website2023-01-31T15:13:19ZMaarten de WaardAdd Newsletter sign-up page to websiteRelated to #3.
I added a subscribe page to PHPList [as suggested in the docs](https://www.phplist.org/manual/books/phplist-manual/page/creating-a-subscribe-page#bkmrk-add-an-ajax-subscrib), so now we should be able to add this subscript...Related to #3.
I added a subscribe page to PHPList [as suggested in the docs](https://www.phplist.org/manual/books/phplist-manual/page/creating-a-subscribe-page#bkmrk-add-an-ajax-subscrib), so now we should be able to add this subscription code to the website (note I already included the correct URL):
```
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<form method="post" name="subscribeform" id="subscribeform" enctype="multipart/form-data"> <table border=0> <tr> <td><div class="required">Email</div></td> <td class="attributeinput"><input type=text name="email" value="" id="email" size="40"></td> </tr> </table> <input type=hidden name="htmlemail" value="1"> <input type="hidden" name="list[11]" value="signup" /> <input type="hidden" name="subscribe" value="subscribe"/> <button class='button' onclick="if (checkform()) {submitForm();} return false;" >Subscribe</button> <div id="result" style="color: red;"></div> </form>
<script type="text/javascript"> function checkform() { re = /^\w+([.-]?\w+)@\w+([.-]?\w+)(.\w{2,3})+$/; if (!(re.test(jQuery("#email").val()))) { jQuery("#result").empty().append("Please enter a valid email address"); jQuery("#email").focus(); return false; } return true; } function submitForm() { successMessage = 'Thank you for your registration. Please check your email to confirm.'; data = jQuery('#subscribeform').serialize(); jQuery.ajax( { type: 'POST', data: data, url: 'https://newsletter.stackspin.net/lists/?p=subscribe&id=1', dataType: 'html', success: function (data, status, request) { jQuery("#result").empty().append(data != '' ? data : successMessage); jQuery('#email').val(''); }, error: function (request, status, error) { alert('Sorry, we were unable to process your subscription.'); } }); } </script>
```Backloghttps://open.greenhost.net/stackspin/stackspin-wordpress-theme/-/issues/9Dependency Dashboard2024-03-21T01:10:27ZStackspin-renovate BotDependency DashboardThis issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.
## Rate-Limited
These updates are currently rate-limited. Click on a...This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.
## Rate-Limited
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
- [ ] <!-- unlimit-branch=renovate/npm-run-all-replacement -->Replace dependency npm-run-all with npm-run-all2 5.0.0
- [ ] <!-- unlimit-branch=renovate/appleboy-ssh-action-0.x -->Update appleboy/ssh-action action to v0.1.10
- [ ] <!-- unlimit-branch=renovate/rtlcss-4.x -->Update dependency rtlcss to v4.1.1
- [ ] <!-- unlimit-branch=renovate/actions-checkout-4.x -->Update actions/checkout action to v4
- [ ] <!-- unlimit-branch=renovate/actions-setup-node-4.x -->Update actions/setup-node action to v4
- [ ] <!-- unlimit-branch=renovate/appleboy-ssh-action-1.x -->Update appleboy/ssh-action action to v1
- [ ] <!-- unlimit-branch=renovate/major-wordpress-monorepo -->Update dependency @wordpress/eslint-plugin to v17
- [ ] <!-- unlimit-branch=renovate/chokidar-cli-3.x -->Update dependency chokidar-cli to v3
- [ ] <!-- unlimit-branch=renovate/postcss-calc-9.x -->Update dependency postcss-calc to v9
- [ ] <!-- unlimit-branch=renovate/postcss-cli-11.x -->Update dependency postcss-cli to v11
- [ ] <!-- unlimit-branch=renovate/postcss-custom-media-10.x -->Update dependency postcss-custom-media to v10
- [ ] <!-- unlimit-branch=renovate/postcss-discard-duplicates-6.x -->Update dependency postcss-discard-duplicates to v6
- [ ] <!-- unlimit-branch=renovate/postcss-focus-within-8.x -->Update dependency postcss-focus-within to v8
- [ ] <!-- unlimit-branch=renovate/stylelint-16.x -->Update dependency stylelint to v16
- [ ] <!-- unlimit-branch=renovate/stylelint-config-recommended-scss-14.x -->Update dependency stylelint-config-recommended-scss to v14
- [ ] <!-- create-all-rate-limited-prs -->🔐 **Create all rate-limited MRs at once** 🔐
## Open
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
- [ ] <!-- rebase-branch=renovate/autoprefixer-10.x -->[Update dependency autoprefixer to v10.4.19](!256)
- [ ] <!-- rebase-branch=renovate/minimist-1.x -->[Update dependency minimist to v1.2.8](!257)
- [ ] <!-- rebase-branch=renovate/postcss-8.x -->[Update dependency postcss to v8.4.38](!258)
- [ ] <!-- rebase-branch=renovate/eslint-8.x -->[Update dependency eslint to v8.57.0](!259)
- [ ] <!-- rebase-branch=renovate/postcss-cli-10.x -->[Update dependency postcss-cli to v10.1.0](!267)
- [ ] <!-- rebase-branch=renovate/postcss-css-variables-0.x -->[Update dependency postcss-css-variables to v0.19.0](!268)
- [ ] <!-- rebase-branch=renovate/sass-1.x -->[Update dependency sass to v1.72.0](!260)
- [ ] <!-- rebase-branch=renovate/stylelint-14.x -->[Update dependency stylelint to v14.16.1](!261)
- [ ] <!-- rebase-branch=renovate/wordpress-monorepo -->[Update wordpress monorepo](!262) (`@wordpress/browserslist-config`, `@wordpress/eslint-plugin`, `@wordpress/stylelint-config`)
- [ ] <!-- rebase-branch=renovate/postcss-nested-6.x -->[Update dependency postcss-nested to v6](!263)
- [ ] <!-- rebase-all-open-prs -->**Click on this checkbox to rebase all open MRs at once**
## Detected dependencies
<details><summary>github-actions</summary>
<blockquote>
<details><summary>.github/workflows/codeshipper.yml</summary>
- `actions/checkout v3`
- `actions/setup-node v3`
- `EndBug/add-and-commit v9`
- `appleboy/ssh-action v0.1.5`
</details>
<details><summary>.github/workflows/deploy.yml</summary>
- `appleboy/ssh-action v0.1.5`
</details>
</blockquote>
</details>
<details><summary>npm</summary>
<blockquote>
<details><summary>package.json</summary>
- `@wordpress/browserslist-config 5.3.0`
- `@wordpress/eslint-plugin 13.4.0`
- `@wordpress/stylelint-config 21.3.0`
- `autoprefixer 10.4.10`
- `chokidar-cli 2.1.0`
- `eslint 8.24.0`
- `minimist 1.2.6`
- `npm-run-all 4.1.5`
- `postcss 8.4.17`
- `postcss-calc 8.2.4`
- `postcss-cli 10.0.0`
- `postcss-css-variables 0.18.0`
- `postcss-custom-media 8.0.2`
- `postcss-discard-duplicates 5.1.0`
- `postcss-focus-within 6.1.1`
- `postcss-nested 5.0.6`
- `rtlcss 4.0.0`
- `sass 1.54.9`
- `stylelint 14.13.0`
- `stylelint-config-recommended-scss 7.0.0`
</details>
</blockquote>
</details>Backloghttps://open.greenhost.net/stackspin/stackspin-wordpress-theme/-/issues/2Set up CI/CD2022-03-03T08:45:14ZTin GeberSet up CI/CDCurrent github repo already has `YAML` files for prepping the code for shipping, and for deployment (via SSH) onto a development server. https://github.com/level73/stackspin-theme/actions
Copied over for simplicity:
`codeshipper.yml`
...Current github repo already has `YAML` files for prepping the code for shipping, and for deployment (via SSH) onto a development server. https://github.com/level73/stackspin-theme/actions
Copied over for simplicity:
`codeshipper.yml`
```yaml
name: Codeshipper
on:
push:
branches:
# Run only on pushes to main
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
run: npm install
- name: Run build step
run: npm run build
- name: Commit changes
uses: EndBug/add-and-commit@v5
with:
message: "[Automated] Update build files"
add: "style* assets/css"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy:
needs: build
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Deploy
uses: appleboy/ssh-action@v0.1.2
with:
host: ${{secrets.SSH_HOST}}
key: ${{secrets.SSH_KEY}}
username: ${{secrets.SSH_USER}}
script: |
cd ${{secrets.DESTINATION_DIR}}
git pull
echo "Deployed"
```
`deploy.yml`
```yaml
# Deploy to Server on Push (branch: main)
name: Deploy
on:
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "deploy"
deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Deploy
uses: appleboy/ssh-action@v0.1.2
with:
host: ${{secrets.SSH_HOST}}
key: ${{secrets.SSH_KEY}}
username: ${{secrets.SSH_USER}}
script: |
cd /var/www/stackspin.lvl73.it/wordpress/wp-content/themes/stackspin-theme
git pull
echo "Deployed"
```Future