Move various template files into plugin folders
This commit is contained in:
parent
16edc2954d
commit
f4bcfa5c44
@ -1,5 +1,5 @@
|
||||
import tpl_chatbox_message_form from 'templates/chatbox_message_form.js';
|
||||
import tpl_toolbar from 'templates/toolbar.js';
|
||||
import tpl_chatbox_message_form from './templates/chatbox_message_form.js';
|
||||
import tpl_toolbar from './templates/toolbar.js';
|
||||
import { ElementView } from '@converse/skeletor/src/element.js';
|
||||
import { __ } from 'i18n';
|
||||
import { _converse, api, converse } from "@converse/headless/core";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import UserDetailsModal from 'modals/user-details.js';
|
||||
import debounce from 'lodash/debounce';
|
||||
import tpl_chatbox_head from 'templates/chatbox_head.js';
|
||||
import tpl_chatbox_head from './templates/chatbox_head.js';
|
||||
import { ElementView } from '@converse/skeletor/src/element.js';
|
||||
import { __ } from 'i18n';
|
||||
import { _converse, api } from "@converse/headless/core";
|
||||
|
@ -3,14 +3,14 @@
|
||||
* @copyright 2020, the Converse.js contributors
|
||||
* @license Mozilla Public License (MPLv2)
|
||||
*/
|
||||
import '../../components/chat_content.js';
|
||||
import '../../components/help_messages.js';
|
||||
import '../../components/toolbar.js';
|
||||
import '../chatboxviews/index.js';
|
||||
import '../modal.js';
|
||||
import { _converse, api, converse } from '@converse/headless/core';
|
||||
import 'shared/chat/chat-content.js';
|
||||
import 'shared/chat/toolbar.js';
|
||||
import ChatBoxView from './view.js';
|
||||
import chatview_api from './api.js';
|
||||
import { _converse, api, converse } from '@converse/headless/core';
|
||||
|
||||
const { Strophe } = converse.env;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { _converse } from '@converse/headless/core';
|
||||
import { html } from "lit-html";
|
||||
import { renderAvatar } from './directives/avatar.js';
|
||||
import { renderAvatar } from 'templates/directives/avatar.js';
|
||||
import { until } from 'lit-html/directives/until.js';
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
import '../chatview/index.js';
|
||||
import '../modal.js';
|
||||
import './adhoc-commands.js';
|
||||
import 'shared/chat/chat-content.js';
|
||||
import 'shared/chat/toolbar.js';
|
||||
import MUCView from './muc.js';
|
||||
import MUCConfigForm from './config-form.js';
|
||||
import MUCPasswordForm from './password-form.js';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import 'shared/autocomplete/index.js';
|
||||
import tpl_muc_sidebar from "templates/muc_sidebar.js";
|
||||
import tpl_muc_sidebar from "./templates/muc_sidebar.js";
|
||||
import { CustomElement } from 'components/element.js';
|
||||
import { api, converse } from "@converse/headless/core";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { html } from "lit-html";
|
||||
import { __ } from '../i18n';
|
||||
import { __ } from 'i18n';
|
||||
import tpl_occupant from "./occupant.js";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { html } from "lit-html";
|
||||
import { __ } from '../i18n';
|
||||
import { __ } from 'i18n';
|
||||
|
||||
|
||||
const occupant_title = (o) => {
|
@ -1,6 +1,6 @@
|
||||
import "./message-history";
|
||||
import debounce from 'lodash/debounce';
|
||||
import { CustomElement } from './element.js';
|
||||
import { CustomElement } from 'components/element.js';
|
||||
import { _converse, api } from "@converse/headless/core";
|
||||
import { html } from 'lit-element';
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { CustomElement } from './element.js';
|
||||
import { CustomElement } from 'components/element.js';
|
||||
import { _converse, converse, api } from "@converse/headless/core";
|
||||
import { html } from "lit-element";
|
||||
import { tpl_all_emojis, tpl_search_results } from "../templates/emoji_picker.js";
|
||||
import { tpl_all_emojis, tpl_search_results } from "./templates/emoji-picker.js";
|
||||
|
||||
const { sizzle } = converse.env;
|
||||
|
@ -1,12 +1,12 @@
|
||||
import "./emoji-picker-content.js";
|
||||
import DOMNavigator from "../shared/dom-navigator";
|
||||
import DOMNavigator from "shared/dom-navigator";
|
||||
import debounce from 'lodash/debounce';
|
||||
import { BaseDropdown } from "./dropdown.js";
|
||||
import { CustomElement } from './element.js';
|
||||
import { __ } from '../i18n';
|
||||
import { BaseDropdown } from "components/dropdown.js";
|
||||
import { CustomElement } from 'components/element.js';
|
||||
import { __ } from 'i18n';
|
||||
import { _converse, api, converse } from "@converse/headless/core";
|
||||
import { html } from "lit-element";
|
||||
import { tpl_emoji_picker } from "../templates/emoji_picker.js";
|
||||
import { tpl_emoji_picker } from "./templates/emoji-picker.js";
|
||||
import { until } from 'lit-html/directives/until.js';
|
||||
|
||||
const u = converse.env.utils;
|
@ -1,8 +1,8 @@
|
||||
import "./message";
|
||||
import dayjs from 'dayjs';
|
||||
import tpl_new_day from "../templates//new_day.js";
|
||||
import { CustomElement } from './element.js';
|
||||
import { __ } from '../i18n';
|
||||
import tpl_new_day from "templates/new_day.js";
|
||||
import { CustomElement } from 'components/element.js';
|
||||
import { __ } from 'i18n';
|
||||
import { _converse, api } from "@converse/headless/core";
|
||||
import { html } from 'lit-element';
|
||||
import { repeat } from 'lit-html/directives/repeat.js';
|
@ -1,16 +1,16 @@
|
||||
import '../shared/registry';
|
||||
import './dropdown.js';
|
||||
import './message-actions.js';
|
||||
import './message-body.js';
|
||||
import MessageVersionsModal from '../modals/message-versions.js';
|
||||
import 'shared/registry';
|
||||
import 'components/dropdown.js';
|
||||
import 'components/message-actions.js';
|
||||
import 'components/message-body.js';
|
||||
import MessageVersionsModal from 'modals/message-versions.js';
|
||||
import OccupantModal from 'modals/occupant.js';
|
||||
import UserDetailsModal from 'modals/user-details.js';
|
||||
import dayjs from 'dayjs';
|
||||
import filesize from 'filesize';
|
||||
import tpl_chat_message from '../templates/chat_message.js';
|
||||
import tpl_spinner from '../templates/spinner.js';
|
||||
import { CustomElement } from './element.js';
|
||||
import { __ } from '../i18n';
|
||||
import tpl_chat_message from './templates/message.js';
|
||||
import tpl_spinner from 'templates/spinner.js';
|
||||
import { CustomElement } from 'components/element.js';
|
||||
import { __ } from 'i18n';
|
||||
import { _converse, api, converse } from '@converse/headless/core';
|
||||
import { getDerivedMessageProps } from './message-history';
|
||||
import { html } from 'lit-element';
|
@ -1,4 +1,4 @@
|
||||
import { __ } from '../i18n';
|
||||
import { __ } from 'i18n';
|
||||
import { _converse, converse, api } from "@converse/headless/core";
|
||||
import { html } from "lit-html";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import 'shared/chat/unfurl';
|
||||
import { __ } from '../i18n';
|
||||
import { __ } from 'i18n';
|
||||
import { html } from "lit-html";
|
||||
import { renderAvatar } from './../templates/directives/avatar';
|
||||
import { renderAvatar } from 'templates/directives/avatar';
|
||||
|
||||
|
||||
export default (o) => {
|
@ -1,6 +1,6 @@
|
||||
import "./emoji-picker.js";
|
||||
import { CustomElement } from './element.js';
|
||||
import { __ } from '../i18n';
|
||||
import { CustomElement } from 'components/element.js';
|
||||
import { __ } from 'i18n';
|
||||
import { _converse, api, converse } from "@converse/headless/core";
|
||||
import { html } from 'lit-element';
|
||||
import { until } from 'lit-html/directives/until.js';
|
Loading…
Reference in New Issue
Block a user