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

Refactor #173

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
helix-importer-ui
rollup/*
blocks/form/rules/formula/*
blocks/form/rules/model/*
blocks/form/lib/rules/formula/*
blocks/form/lib/rules/model/*
scripts/editor-support.js
scripts/editor-support-rte.js
1 change: 1 addition & 0 deletions blocks/form/components/file/file.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* empty file.css */
2 changes: 1 addition & 1 deletion blocks/form/components/file/file.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { updateOrCreateInvalidMsg, stripTags } from '../../util.js';
import { updateOrCreateInvalidMsg, stripTags } from '../../lib/util.js';
import { fileAttachmentText, dragDropText, defaultErrorMessages } from '../../constant.js';

const fileSizeRegex = /^(\d*\.?\d+)(\\?(?=[KMGT])([KMGT])(?:i?B)?|B?)$/i;
Expand Down
2 changes: 1 addition & 1 deletion blocks/form/components/modal/modal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { subscribe } from '../../rules/index.js';
import { subscribe } from '../../lib/rules/index.js';
import { decorateIcons } from '../../../../scripts/aem.js';

export class Modal {
Expand Down
2 changes: 1 addition & 1 deletion blocks/form/components/repeat/repeat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getId } from '../../util.js';
import { getId } from '../../lib/util.js';

function update(fieldset, index, labelTemplate) {
const legend = fieldset.querySelector(':scope>.field-label')?.firstChild;
Expand Down
2 changes: 1 addition & 1 deletion blocks/form/components/wizard/wizard.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createButton } from '../../util.js';
import { createButton } from '../../lib/util.js';

export class WizardLayout {
inputFields = 'input,textarea,select';
Expand Down
1 change: 0 additions & 1 deletion blocks/form/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const defaultErrorMessages = {

// eslint-disable-next-line no-useless-escape
export const emailPattern = '([A-Za-z0-9][._]?)+[A-Za-z0-9]@[A-Za-z0-9]+(\.?[A-Za-z0-9]){2}\.([A-Za-z0-9]{2,4})?';

let submitBaseUrl = '';

export function setSubmitBaseUrl(url) {
Expand Down
Loading
Loading