Improve import alias

@file/ and @export/ instead of file/ and export/ etc
This commit is contained in:
Dolan Miu
2022-06-26 23:26:42 +01:00
parent c19bc6b4b3
commit 982d923553
380 changed files with 758 additions and 521 deletions

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components";
import { XmlAttributeComponent } from "@file/xml-components";
export class BookmarkStartAttributes extends XmlAttributeComponent<{
readonly id: number;

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/WPbookmark.php
import { uniqueNumericId } from "convenience-functions";
import { XmlComponent } from "file/xml-components";
import { XmlComponent } from "@file/xml-components";
import { uniqueNumericId } from "@util/convenience-functions";
import { ParagraphChild } from "../paragraph";
import { BookmarkEndAttributes, BookmarkStartAttributes } from "./bookmark-attributes";

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components";
import { XmlAttributeComponent } from "@file/xml-components";
export interface IHyperlinkAttributesProperties {
readonly id?: string;

View File

@ -1,6 +1,6 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { TextRun } from "../run";
import { ConcreteHyperlink, ExternalHyperlink, InternalHyperlink } from "./hyperlink";

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/WPhyperlink.php
import { uniqueId } from "convenience-functions";
import { XmlComponent } from "file/xml-components";
import { XmlComponent } from "@file/xml-components";
import { uniqueId } from "@util/convenience-functions";
import { ParagraphChild } from "../paragraph";
import { HyperlinkAttributes, IHyperlinkAttributesProperties } from "./hyperlink-attributes";

View File

@ -1,6 +1,6 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { OutlineLevel } from "./outline-level";

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPparagraph.php
import { Attributes, XmlComponent } from "file/xml-components";
import { Attributes, XmlComponent } from "@file/xml-components";
export class OutlineLevel extends XmlComponent {
constructor(public readonly level: number) {

View File

@ -1,6 +1,6 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { PageReferenceFieldInstruction } from "./pageref-field-instruction";
describe("PageReference field instruction", () => {

View File

@ -1,5 +1,5 @@
import { SpaceType } from "file/space-type";
import { XmlComponent } from "file/xml-components";
import { SpaceType } from "@file/space-type";
import { XmlComponent } from "@file/xml-components";
import { TextAttributes } from "../run/text-attributes";
import { IPageReferenceOptions } from "./pageref-properties";

View File

@ -1,6 +1,6 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { PageReference } from "./pageref";
describe("PageReference", () => {

View File

@ -1,5 +1,5 @@
// See https://www.ecma-international.org/publications/standards/Ecma-376.htm (at Part 1, Page 1234)
import { Begin, End } from "file/paragraph/run/field";
import { Begin, End } from "@file/paragraph/run/field";
import { Run } from "../run";
import { PageReferenceFieldInstruction } from "./pageref-field-instruction";
import type { IPageReferenceOptions } from "./pageref-properties";