Move js-tree files out from /containers subfolder
This commit is contained in:
parent
e68685521b
commit
af597d943b
18 changed files with 21 additions and 22 deletions
|
@ -25,8 +25,8 @@
|
|||
|
||||
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
import ItemTree from 'containers/itemTree';
|
||||
import { getDefaultColumnsByDataKeys } from 'containers/itemTreeColumns';
|
||||
import ItemTree from 'zotero/itemTree';
|
||||
import { getDefaultColumnsByDataKeys } from 'zotero/itemTreeColumns';
|
||||
|
||||
|
||||
var ZoteroAdvancedSearch = new function() {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
const React = require('react');
|
||||
const ReactDOM = require('react-dom');
|
||||
const { IntlProvider } = require('react-intl');
|
||||
const LibraryTree = require('containers/libraryTree');
|
||||
const LibraryTree = require('./libraryTree');
|
||||
const VirtualizedTable = require('components/virtualized-table');
|
||||
const { TreeSelectionStub } = VirtualizedTable;
|
||||
const Icons = require('components/icons');
|
|
@ -27,7 +27,7 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import cx from 'classnames';
|
||||
import { noop } from '../utils';
|
||||
import { pickKeys } from '@zotero/immutable';
|
||||
import { pickKeys } from 'zotero/modules/immutable';
|
||||
//import AutoResizer from './auto-resizer';
|
||||
import Autosuggest from 'react-autosuggest';
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
Components.utils.import("resource://gre/modules/osfile.jsm");
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
import FilePicker from 'zotero/filePicker';
|
||||
import FilePicker from 'zotero/modules/filePicker';
|
||||
|
||||
/****Zotero_File_Exporter****
|
||||
**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import FilePicker from 'zotero/filePicker';
|
||||
import FilePicker from 'zotero/modules/filePicker';
|
||||
|
||||
var Zotero_Import_Wizard = {
|
||||
_wizard: null,
|
||||
|
|
|
@ -28,12 +28,12 @@ const PropTypes = require("prop-types");
|
|||
const React = require('react');
|
||||
const ReactDOM = require('react-dom');
|
||||
const { IntlProvider } = require('react-intl');
|
||||
const LibraryTree = require('containers/libraryTree');
|
||||
const LibraryTree = require('./libraryTree');
|
||||
const VirtualizedTable = require('components/virtualized-table');
|
||||
const { renderCell, TreeSelectionStub } = VirtualizedTable;
|
||||
const Icons = require('components/icons');
|
||||
const { getDOMElement } = Icons;
|
||||
const { COLUMNS } = require('containers/itemTreeColumns');
|
||||
const { COLUMNS } = require('./itemTreeColumns');
|
||||
const { Cc, Ci, Cu } = require('chrome');
|
||||
Cu.import("resource://gre/modules/osfile.jsm");
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
*/
|
||||
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
import FilePicker from 'zotero/filePicker';
|
||||
import FilePicker from 'zotero/modules/filePicker';
|
||||
|
||||
Zotero_Preferences.Advanced = {
|
||||
DEFAULT_OPENURL_RESOLVER: 'https://www.worldcat.org/registry/gateway',
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
import FilePicker from 'zotero/filePicker';
|
||||
import FilePicker from 'zotero/modules/filePicker';
|
||||
|
||||
var React = require('react');
|
||||
var ReactDOM = require('react-dom');
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
Components.utils.import("resource://gre/modules/osfile.jsm");
|
||||
import FilePicker from 'zotero/filePicker';
|
||||
import FilePicker from 'zotero/modules/filePicker';
|
||||
|
||||
Zotero_Preferences.General = {
|
||||
init: function () {
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
* @fileOverview Tools for automatically retrieving a citation for the given PDF
|
||||
*/
|
||||
|
||||
import FilePicker from 'zotero/filePicker';
|
||||
import FilePicker from 'zotero/modules/filePicker';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import VirtualizedTable from 'components/virtualized-table';
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
***** END LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
import CollectionTree from 'containers/collectionTree';
|
||||
import ItemTree from 'containers/itemTree';
|
||||
import CollectionTree from 'zotero/collectionTree';
|
||||
import ItemTree from 'zotero/itemTree';
|
||||
|
||||
var itemsView;
|
||||
var collectionsView;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<p id="result"></p>
|
||||
<script src="../include.js"></script>
|
||||
<script type="text/javascript">
|
||||
import FilePicker from 'zotero/filePicker';
|
||||
import FilePicker from 'zotero/modules/filePicker';
|
||||
|
||||
(async function () {
|
||||
// Create schema
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
***** END LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
import FilePicker from 'zotero/filePicker';
|
||||
import FilePicker from 'zotero/modules/filePicker';
|
||||
|
||||
var Zotero_CSL_Editor = new function() {
|
||||
this.init = init;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
import FilePicker from 'zotero/filePicker';
|
||||
import FilePicker from 'zotero/modules/filePicker';
|
||||
|
||||
Zotero.DataDirectory = {
|
||||
MIGRATION_MARKER: 'migrate-dir',
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
***** END LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
import FilePicker from 'zotero/filePicker';
|
||||
import FilePicker from 'zotero/modules/filePicker';
|
||||
|
||||
/*
|
||||
* This object contains the various functions for the interface
|
||||
|
@ -1049,7 +1049,7 @@ var ZoteroPane = new function()
|
|||
|
||||
this.initItemsTree = async function () {
|
||||
try {
|
||||
const ItemTree = require('containers/itemTree');
|
||||
const ItemTree = require('zotero/itemTree');
|
||||
var itemsTree = document.getElementById('zotero-items-tree');
|
||||
ZoteroPane.itemsView = await ItemTree.init(itemsTree, {
|
||||
id: "main",
|
||||
|
@ -1072,7 +1072,7 @@ var ZoteroPane = new function()
|
|||
|
||||
this.initCollectionsTree = async function () {
|
||||
try {
|
||||
const CollectionTree = require('containers/collectionTree');
|
||||
const CollectionTree = require('zotero/collectionTree');
|
||||
var collectionsTree = document.getElementById('zotero-collections-tree');
|
||||
ZoteroPane.collectionsView = await CollectionTree.init(collectionsTree, {
|
||||
onSelectionChange: prevSelection => ZoteroPane.onCollectionSelected(prevSelection),
|
||||
|
|
|
@ -99,8 +99,7 @@ var require = (function() {
|
|||
'': 'resource://zotero/',
|
||||
'containers/': 'chrome://zotero/content/containers/',
|
||||
'components/': 'chrome://zotero/content/components/',
|
||||
'zotero/': 'chrome://zotero/content/modules/',
|
||||
'@zotero/': 'chrome://zotero/content/modules/'
|
||||
'zotero/': 'chrome://zotero/content/',
|
||||
},
|
||||
globals
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue