Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
I18n is now imported
Dieser Commit ist enthalten in:
Ursprung
34a556e0bf
Commit
f28bde5206
6 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen
2
assets/javascripts/wizard-preload.js.es6
Normale Datei
2
assets/javascripts/wizard-preload.js.es6
Normale Datei
|
@ -0,0 +1,2 @@
|
|||
//= require discourse-loader
|
||||
//= require locales/i18n
|
|
@ -1,6 +1,7 @@
|
|||
import { default as computed, observes } from 'discourse-common/utils/decorators';
|
||||
import { renderAvatar } from 'discourse/helpers/user-avatar';
|
||||
import userSearch from '../lib/user-search';
|
||||
import I18n from "I18n";
|
||||
|
||||
const template = function(params) {
|
||||
const options = params.options;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import getUrl from "discourse-common/lib/get-url";
|
||||
import { getToken } from "wizard/lib/ajax";
|
||||
import I18n from "I18n";
|
||||
|
||||
export default Ember.Component.extend({
|
||||
classNames: ["wizard-field-upload"],
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
import computed from "discourse-common/utils/decorators";
|
||||
import { siteDir, isRTL, isLTR } from "discourse/lib/text-direction";
|
||||
import I18n from "I18n";
|
||||
|
||||
export default Ember.TextField.extend({
|
||||
attributeBindings: ['autocorrect', 'autocapitalize', 'autofocus', 'maxLength', 'dir'],
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import I18n from "I18n";
|
||||
|
||||
export default Ember.Route.extend({
|
||||
model(params) {
|
||||
const appModel = this.modelFor('custom');
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
<%- if theme_ids.present? %>
|
||||
<%= discourse_stylesheet_link_tag (mobile_view? ? :mobile_theme : :desktop_theme) %>
|
||||
<%- end %>
|
||||
|
||||
|
||||
<%= preload_script "wizard-preload" %>
|
||||
<%= preload_script "ember_jquery" %>
|
||||
<%= preload_script "wizard-vendor" %>
|
||||
<%= preload_script "wizard-application" %>
|
||||
|
|
Laden …
In neuem Issue referenzieren