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,6 +1,6 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { Alignment, AlignmentType } from "./alignment";
describe("Alignment", () => {

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/WPalignment.php
// http://officeopenxml.com/WPtableAlignment.php
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
export enum AlignmentType {
START = "start",

View File

@ -1,8 +1,8 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { BorderStyle } from "file/border";
import { BorderStyle } from "@file/border";
import { Border, ThematicBreak } from "./border";
describe("Border", () => {

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/WPborders.php
import { BorderElement, BorderStyle, IBorderOptions } from "file/border";
import { IgnoreIfEmptyXmlComponent, XmlComponent } from "file/xml-components";
import { BorderElement, BorderStyle, IBorderOptions } from "@file/border";
import { IgnoreIfEmptyXmlComponent, XmlComponent } from "@file/xml-components";
export interface IBordersOptions {
readonly top?: IBorderOptions;

View File

@ -1,6 +1,6 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { ColumnBreak, PageBreak, PageBreakBefore } from "./break";

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPtextSpecialContent-break.php
import { Attributes, XmlComponent } from "file/xml-components";
import { Attributes, XmlComponent } from "@file/xml-components";
import { Run } from "../run";
enum BreakType {

View File

@ -1,6 +1,6 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { Indent } from "./indent";

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/WPindentation.php
import { signedTwipsMeasureValue, twipsMeasureValue } from "file/values";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { signedTwipsMeasureValue, twipsMeasureValue } from "@util/values";
export interface IIndentAttributesProperties {
readonly start?: number | string;

View File

@ -1,6 +1,6 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { Spacing } from "./spacing";

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPspacing.php
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
export enum LineRuleType {
AT_LEAST = "atLeast",

View File

@ -1,6 +1,6 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { Style } from "./style";

View File

@ -1,4 +1,4 @@
import { Attributes, XmlComponent } from "file/xml-components";
import { Attributes, XmlComponent } from "@file/xml-components";
export enum HeadingLevel {
HEADING_1 = "Heading1",

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPtab.php
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
export class TabStop extends XmlComponent {
constructor(type: TabStopType, position: number, leader?: LeaderType) {

View File

@ -1,6 +1,6 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { NumberProperties } from "./unordered-list";

View File

@ -1,4 +1,4 @@
import { Attributes, XmlComponent } from "file/xml-components";
import { Attributes, XmlComponent } from "@file/xml-components";
export class NumberProperties extends XmlComponent {
constructor(numberId: number | string, indentLevel: number) {