-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GPII-4100: GPII-4100: Updated for compatibility with a newer "potentia ii" version of infusion that doesn't allow options munging. GPII-4100: Updated to newest chokidar after corresponding with author re: an OS X issue that is now apparently fixed. GPII-4100: Improved fix for chokidar FSevents errors on OS X. GPII-4100: Updated to latest chokidar to hopefully address EPERM issues. GPII-4100: temporary fix for windows Firefox test timeouts. GPII-4100: Fixed lingering problems with template ordering. GPII-4100: Updated lingering template directory options arrays. GPII-4132: GPII-4185: Standardised directory handling for messages and templates to allow proper prioritisation. GPII-4100: Fixed bug in message helper key handling that would choke on keys with dots. GPII-4100: Reordered node test rollup to avoid cross-talk between renderer and dispatcher tests. GPII-4100: Refactored to use recent potentia-ii, which required rewriting the `getMessage` helper and i18n stack. GPII-4100: Updated to latest potentia-ii infusion and linting. Reverted test workarounds and fixed linting errors.
- Loading branch information
Showing
45 changed files
with
374 additions
and
304 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 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,16 @@ | ||
# `gpii.handlebars.serverResourceAware` | ||
|
||
This component uses the "resource loading" features of the Infusion framework to load the templates and message bundles | ||
provided by the middleware in this package. Once both are available, a client-side [renderer component](renderer.md) | ||
is created. The `afterRenderer` event is fired once the renderer is available. | ||
|
||
For more examples of using this in depth, check out the `templateFormControl` grade or the client side tests. | ||
|
||
## Component Options | ||
|
||
This component has two options, that control how its resources are loaded. | ||
|
||
| Option | Type | Description | | ||
| --------------------- | ---------- | ----------- | | ||
| `resources.message` | `{Object}` | This is configured to load message bundles from `/messages` on the same hostname/port as the page itself uses. See [the "Resource Loader" documentation](https://github.com/amb26/infusion-docs/blob/FLUID-6148/src/documents/ResourceLoader.md) for details on how to configure this option. | | ||
| `resources.templates` | `{Object}` | This is configured to load message bundles from `/templates` on the same hostname/port as the page itself uses. See [the "Resource Loader" documentation](https://github.com/amb26/infusion-docs/blob/FLUID-6148/src/documents/ResourceLoader.md) for details on how to configure this option. | |
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,18 @@ | ||
/* The client-side overlay for the i18n "message helper" used in rendering {{message}} content. */ | ||
/* eslint-env node */ | ||
"use strict"; | ||
var fluid = fluid || require("infusion"); | ||
|
||
fluid.defaults("gpii.handlebars.helper.messageHelper.client", { | ||
gradeNames: ["gpii.handlebars.helper.messageHelper"], | ||
helperName: "messageHelper", | ||
model: { | ||
messages: {} | ||
}, | ||
invokers: { | ||
"resolveMessage": { | ||
funcName: "gpii.handlebars.helper.messageHelper.resolveMessage", | ||
args: ["{that}.model.messages", "{arguments}.0", "{arguments}.1", "{arguments}.2"] // messages, messageKey, dataOrRootContext, rootContext | ||
} | ||
} | ||
}); |
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
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
Oops, something went wrong.