Skip to content

chore: consolidate forms#84

Merged
junglebarry merged 3 commits intomainfrom
consolidate_forms
Jul 18, 2025
Merged

chore: consolidate forms#84
junglebarry merged 3 commits intomainfrom
consolidate_forms

Conversation

@junglebarry
Copy link
Copy Markdown
Contributor

We have two variants of the current forms - formsA and formsB - which appear to be experiments that do not live under source control properly. Here, we remove these variants, and consolidate on a single forms example.

Comment thread .prettierignore
Comment on lines +1 to +2
assets/example-form.js
assets/FormValidator.js
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't - yet - want to reformat these automatically.

@@ -46,16 +46,16 @@ FormValidator.prototype.showSummary = function() {
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is utterly misleading. This file has not been renamed; it's been deleted.

docs/assets/FormValidator.js is generated from assets/FormValidator.js, using npm run build.

Comment thread assets/example-form.js
@@ -5,7 +5,7 @@ validator.addValidator("email", [
method: function (field) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is utterly misleading. This file has not been renamed; it's been deleted.

docs/assets/example-form.js is generated from assets/example-form.js, using npm run build.

Comment thread package.json
"homepage": "https://github.com/techfromsage/bootstrap-theme#readme",
"scripts": {
"build": "npm-run-all build:*",
"build:assets": "mkdir -p docs/assets && cp -r assets/* docs/assets/",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy all assets - including JS files.

@junglebarry junglebarry merged commit e04915c into main Jul 18, 2025
4 checks passed
@junglebarry junglebarry deleted the consolidate_forms branch July 18, 2025 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants