Skip to content

Commit

Permalink
No relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ComLock committed Feb 8, 2024
1 parent 0caa610 commit 3f27149
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/admin/widgets/seo/seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {render} from '/lib/thymeleaf';
import {getAppendix} from '/lib/common/getAppendix';
import {getBlockRobots} from '/lib/common/getBlockRobots';
import {getContentForCanonicalUrl} from '/lib/common/getContentForCanonicalUrl';
import {getImageUrl} from '../../../lib/common/getImageUrl';
import {getImageUrl} from '/lib/common/getImageUrl';
import {getLang} from '/lib/common/getLang';
import {getMetaDescription} from '/lib/common/getMetaDescription';
import {getPageTitle} from '/lib/common/getPageTitle';
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/common/findImageIdInContent.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {Content} from '/lib/xp/content';
import type {ImageId} from '/lib/types';
import type {MetafieldsSiteConfig} from '../types/MetafieldsSiteConfig';
import type {MetafieldsSiteConfig} from '/lib/types/MetafieldsSiteConfig';

import {forceArray} from '@enonic/js-utils/array/forceArray';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/common/getAppendix.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {Site} from '@enonic-types/lib-portal';
import type {MetafieldsSiteConfig} from '../types/MetafieldsSiteConfig';
import type {MetafieldsSiteConfig} from '/lib/types/MetafieldsSiteConfig';


import {getTheConfig} from '/lib/common/getTheConfig';
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/common/getFullTitle.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {Content} from '/lib/xp/content';
import type {Site} from '/lib/xp/portal';
import type {MetafieldsSiteConfig} from '../types/MetafieldsSiteConfig';
import type {MetafieldsSiteConfig} from '/lib/types/MetafieldsSiteConfig';


import {getAppendix} from '/lib/common/getAppendix';
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/common/getImageId.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {Content, Site} from '/lib/xp/content';
import type {ImageId} from '/lib/types';
import type {MetafieldsSiteConfig} from '../types/MetafieldsSiteConfig';
import type {MetafieldsSiteConfig} from '/lib/types/MetafieldsSiteConfig';


import {findImageIdInContent} from '/lib/common/findImageIdInContent';
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/common/getMetaDescription.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {Content} from '/lib/xp/content';
import type {Site} from '/lib/xp/portal';
import type {MetafieldsSiteConfig} from '../types/MetafieldsSiteConfig';
import type {MetafieldsSiteConfig} from '/lib/types/MetafieldsSiteConfig';


import {commaStringToArray} from '/lib/common/commaStringToArray';
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/common/getPageTitle.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {Content} from '/lib/xp/content';
import type {Site} from '@enonic-types/lib-portal';
import type {MetafieldsSiteConfig} from '../types/MetafieldsSiteConfig';
import type {MetafieldsSiteConfig} from '/lib/types/MetafieldsSiteConfig';


import {commaStringToArray} from '/lib/common/commaStringToArray';
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/common/getSite.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {Site} from '/lib/xp/portal';
import type { MetafieldsSiteConfig } from '../types/MetafieldsSiteConfig';
import type { MetafieldsSiteConfig } from '/lib/types/MetafieldsSiteConfig';


import {query} from '/lib/xp/content';
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/common/getSiteConfigFromSite.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {Site} from '/lib/xp/portal';
import type {MetafieldsSiteConfig} from '../types/MetafieldsSiteConfig';
import type {MetafieldsSiteConfig} from '/lib/types/MetafieldsSiteConfig';


import {forceArray} from '@enonic/js-utils/array/forceArray';
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/common/getTheConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {Site} from '/lib/xp/portal';
import type {MetafieldsSiteConfig} from '../types/MetafieldsSiteConfig';
import type {MetafieldsSiteConfig} from '/lib/types/MetafieldsSiteConfig';


import {getSiteConfig as libPortalGetSiteConfig} from '/lib/xp/portal';
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/lib/metadata/getMetaData.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type {Content} from '/lib/xp/content';
import type {Site} from '/lib/xp/portal';
import type {MetafieldsSiteConfig} from '../types/MetafieldsSiteConfig';
import type {MetafieldsSiteConfig} from '/lib/types/MetafieldsSiteConfig';


import {pageUrl} from '/lib/xp/portal';
// @ts-expect-error // No types yet
import {render} from '/lib/thymeleaf';
import {getBlockRobots} from '/lib/common/getBlockRobots';
import {getContentForCanonicalUrl} from '/lib/common/getContentForCanonicalUrl';
import {getImageUrl} from '../common/getImageUrl';
import {getImageUrl} from '/lib/common/getImageUrl';
import {getLang} from '/lib/common/getLang';
import {getMetaDescription} from '/lib/common/getMetaDescription';
import {getPageTitle} from '/lib/common/getPageTitle';
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/metadata/getTitleHtml.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {Content} from '/lib/xp/content';
import type {Site} from '/lib/xp/portal';
import type {MetafieldsSiteConfig} from '../types/MetafieldsSiteConfig';
import type {MetafieldsSiteConfig} from '/lib/types/MetafieldsSiteConfig';


import {getFullTitle} from '/lib/common/getFullTitle';
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import type {
// Value imports
//──────────────────────────────────────────────────────────────────────────────
import {brand} from '/lib/types/brand';
import {isString} from '../common/isString';
import {isString} from '/lib/common/isString';


//──────────────────────────────────────────────────────────────────────────────
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/site/processors/add-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {forceArray} from '@enonic/js-utils/array/forceArray';
import {getFixedHtmlAttrsAsString} from '/lib/metadata/getFixedHtmlAttrsAsString';
import {getMetaData} from '/lib/metadata/getMetaData'
import {getReusableData} from '/lib/metadata/getReusableData';
import {getTitleHtml} from '../../lib/metadata/getTitleHtml';
import {getTitleHtml} from '/lib/metadata/getTitleHtml';


const HTML_MEDIA_TYPE = 'text/html';
Expand Down

0 comments on commit 3f27149

Please sign in to comment.