-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Admin): Update configuration page
Adds configuration for Store Admin functionality Reorganises configuration options on Ideal Postcodes settings page BREAKING CHANGE: HTML targets for the store integration has been removed HTML targets have been replaced by a more robust field detection method
- Loading branch information
Showing
31 changed files
with
308 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { setupBind } from "@ideal-postcodes/jsutil"; | ||
|
||
import { Config, setupAutocomplete } from "./extension"; | ||
|
||
import { selectors } from "./billing"; | ||
|
||
const bind = (config: Config) => { | ||
setupBind({ selectors }).forEach(({ targets }) => { | ||
setupAutocomplete(config, targets); | ||
}); | ||
}; | ||
|
||
const pageTest = () => window.location.pathname.includes("/sales/order"); | ||
|
||
export const bindings = { bind, pageTest }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { setup } from "@ideal-postcodes/jsutil"; | ||
|
||
import { bindings as orders } from "./admin-orders"; | ||
import { bindings as ordersEdit } from "./admin-orders-edit"; | ||
import { bindings as customers } from "./admin-customers"; | ||
|
||
window.idpcStart = () => | ||
setup({ | ||
bindings: [orders, customers, ordersEdit], | ||
window | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.