Skip to content

Commit d3240df

Browse files
committed
wip: rename factor to fiction
1 parent af66d5d commit d3240df

File tree

649 files changed

+819
-766
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

649 files changed

+819
-766
lines changed

.pnpmfile.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// const localInstall = process.env.INSTALL_ENV === 'local'
66
function rewriteFactorDependency(deps) {
77
// Object.entries(deps).forEach(([name, version]) => {
8-
// if (name.includes("@factor")) {
8+
// if (name.includes("@fiction")) {
99
// deps[name] =
1010
// exists && localInstall ? `file:~/Projects/factor/${name}` : "latest"
1111
// }

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
**/.ref*/**
33
**/dist/**
44
*-lock*
5-
**/.factor/**
5+
**/.gen/**

@factor/api/dec.d.ts renamed to @fiction/core/dec.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare module '*.md' {
2-
import type { MarkdownFile } from '@factor/api'
2+
import type { MarkdownFile } from '@fiction/core'
33

44
const src: MarkdownFile
55
export = src
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

@factor/api/package.json renamed to @fiction/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
},
178178
"license": "MIT",
179179
"main": "index.ts",
180-
"name": "@factor/api",
180+
"name": "@fiction/core",
181181
"publishConfig": {
182182
"access": "public"
183183
},
File renamed without changes.
File renamed without changes.

@factor/api/plugin-app/test/TestRunVars.vue renamed to @fiction/core/plugin-app/test/TestRunVars.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts" setup>
2-
import { useService } from '@factor/api'
2+
import { useService } from '@fiction/core'
33
44
const { factorApp } = useService()
55

@factor/api/plugin-app/test/__appServeRender.ci.test.ts renamed to @fiction/core/plugin-app/test/__appServeRender.ci.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import path from 'node:path'
33

44
import type playwright from 'playwright'
55
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
6-
import type { TestServerConfig } from '@factor/api/test-utils/buildTest'
7-
import { createTestServer } from '@factor/api/test-utils/buildTest'
8-
import { commands } from '@factor/www/src/vars'
6+
import type { TestServerConfig } from '@fiction/core/test-utils/buildTest'
7+
import { createTestServer } from '@fiction/core/test-utils/buildTest'
8+
import { commands } from '@fiction/www/src/vars'
99

1010
const require = createRequire(import.meta.url)
11-
const cwd = path.dirname(require.resolve('@factor/www/package.json'))
11+
const cwd = path.dirname(require.resolve('@fiction/www/package.json'))
1212
let testServer: TestServerConfig | undefined
1313

1414
function page(): playwright.Page {
@@ -50,6 +50,6 @@ describe('renders app code correctly', () => {
5050
expect(appNameText).toMatchInlineSnapshot('"FactorJS"')
5151

5252
const appEmailText = await page().locator(`#app-email`).textContent()
53-
expect(appEmailText).toMatchInlineSnapshot('"hi@factorjs.org"')
53+
expect(appEmailText).toMatchInlineSnapshot('"hi@fictionjs.org"')
5454
}, 20_000)
5555
})

@factor/api/plugin-app/test/renderHtml.ci.test.ts renamed to @fiction/core/plugin-app/test/renderHtml.ci.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { TestUtils } from '@factor/api/test-utils'
2-
import { createTestUtils } from '@factor/api/test-utils'
1+
import type { TestUtils } from '@fiction/core/test-utils'
2+
import { createTestUtils } from '@fiction/core/test-utils'
33
import { beforeAll, beforeEach, describe, expect, it, vi } from 'vitest'
44
import type { FactorRender } from '../plugin-render'
55

@factor/api/plugin-app/test/viteConfig.alpha.test.ts renamed to @fiction/core/plugin-app/test/viteConfig.alpha.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { TestUtils } from '@factor/api/test-utils/init'
2-
import { createTestUtils } from '@factor/api/test-utils/init'
1+
import type { TestUtils } from '@fiction/core/test-utils/init'
2+
import { createTestUtils } from '@fiction/core/test-utils/init'
33
import { beforeAll, describe, expect, it } from 'vitest'
44
import type * as vite from 'vite'
55

File renamed without changes.
File renamed without changes.

@factor/api/plugin-build/index.ts renamed to @fiction/core/plugin-build/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ export class FactorBuild extends FactorPlugin<FactorBuildSettings> {
171171

172172
return {
173173
exclude: [
174-
'@factor/api',
175-
'@factor/ui',
176-
'@factor/plugin-notify',
177-
'@factor/plugin-stripe',
178-
'@factor/plugin-highlight-code',
174+
'@fiction/core',
175+
'@fiction/ui',
176+
'@fiction/plugin-notify',
177+
'@fiction/plugin-stripe',
178+
'@fiction/plugin-highlight-code',
179179
'@kaption/client',
180180
'vue',
181181
'vite',
@@ -228,15 +228,15 @@ export class FactorBuild extends FactorPlugin<FactorBuildSettings> {
228228
// root must be set to optimize output file size
229229
root,
230230
ssr: {
231-
noExternal: [/@factor.*/, /@pagelines.*/, /@fiction.*/, 'util'],
231+
noExternal: [/@fiction.*/, /@pagelines.*/, /@fiction.*/, 'util'],
232232
},
233233
server: {
234234
fs: { strict: false },
235235

236236
watch: {
237237
ignored: [
238-
'!**/node_modules/@factor/**',
239-
'!**/node_modules/**/@factor/**',
238+
'!**/node_modules/@fiction/**',
239+
'!**/node_modules/**/@fiction/**',
240240
],
241241
},
242242
// SET A CUSTOM HMR PORT

@factor/api/plugin-cache/__endpoints.ts renamed to @fiction/core/plugin-cache/__endpoints.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type {
22
EndpointResponse,
33
FactorAws,
44
FactorDb,
5-
} from '@factor/api'
5+
} from '@fiction/core'
66
import {
77
Query,
8-
} from '@factor/api'
8+
} from '@fiction/core'
99

1010
// import type { Invalidation } from "@aws-sdk/client-cloudfront"
1111
import type { FactorCache } from '.'

@factor/api/plugin-db/endpoint.ts renamed to @fiction/core/plugin-db/endpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { EndpointResponse, ResponseStatus, ValidationReason } from '@factor/api'
1+
import type { EndpointResponse, ResponseStatus, ValidationReason } from '@fiction/core'
22
import { Query } from '../query'
33
import { words } from '../utils/lib/words'
44
import type { FactorDb } from '.'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

@factor/api/plugin-env/__transpile.js renamed to @fiction/core/plugin-env/__transpile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function transpiler() {
1515
/**
1616
* Allow Node to process TypeScript
1717
*/
18-
const transpileModules = ['@factor', '.*factor', '@kaption', 'dayjs', '.pnpm']
18+
const transpileModules = ['@fiction', '.*factor', '@kaption', 'dayjs', '.pnpm']
1919
tsNode.register({
2020
transpileOnly: true,
2121
compilerOptions: {

@factor/api/plugin-env/cli.js renamed to @fiction/core/plugin-env/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env node --import=tsx --import=@factor/api/plugin-env/loader.mjs
1+
#!/usr/bin/env node --import=tsx --import=@fiction/core/plugin-env/loader.mjs
22

33
const { execute } = await import('./cliProgram')
44

File renamed without changes.
File renamed without changes.

@factor/api/plugin-env/test/envLoading.ci.test.ts renamed to @fiction/core/plugin-env/test/envLoading.ci.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
import type { Mock } from 'vitest'
66
import { beforeAll, describe, expect, it, vi } from 'vitest'
7-
import { randomBetween, safeDirname, vue, waitFor } from '@factor/api/utils'
8-
import { FactorApp } from '@factor/api/plugin-app'
9-
import { FactorRouter } from '@factor/api/plugin-router'
10-
import type { FactorPluginSettings } from '@factor/api/plugin'
11-
import { FactorPlugin } from '@factor/api/plugin'
7+
import { randomBetween, safeDirname, vue, waitFor } from '@fiction/core/utils'
8+
import { FactorApp } from '@fiction/core/plugin-app'
9+
import { FactorRouter } from '@fiction/core/plugin-router'
10+
import type { FactorPluginSettings } from '@fiction/core/plugin'
11+
import { FactorPlugin } from '@fiction/core/plugin'
1212
import { CliCommand, FactorEnv } from '..'
1313
import type { ServiceConfig } from '../types'
1414

@factor/api/plugin-env/test/generate.ci.test.ts renamed to @fiction/core/plugin-env/test/generate.ci.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import path from 'node:path'
2-
import { createTestUtils } from '@factor/api/test-utils/init'
2+
import { createTestUtils } from '@fiction/core/test-utils/init'
33
import { beforeAll, describe, expect, it } from 'vitest'
44
import fs from 'fs-extra'
5-
import { safeDirname } from '@factor/api/utils'
6-
import { generateStaticConfig } from '@factor/api/plugin-env/generate'
5+
import { safeDirname } from '@fiction/core/utils'
6+
import { generateStaticConfig } from '@fiction/core/plugin-env/generate'
77

88
const root = new URL('.', import.meta.url).pathname
99
describe('test config generator', () => {
File renamed without changes.
File renamed without changes.
File renamed without changes.

@factor/api/plugin-media/test/upload.ci.test.ts renamed to @fiction/core/plugin-media/test/upload.ci.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { fileFromPath } from 'formdata-node/file-from-path'
77

88
import { describe, expect, it } from 'vitest'
99
import { FormData } from 'formdata-node'
10-
import type { EndpointMeta } from '@factor/api/utils'
10+
import type { EndpointMeta } from '@fiction/core/utils'
1111
import type { TestUtils } from '../../test-utils/init'
1212
import { createTestUtils } from '../../test-utils/init'
1313
import { testEnvFile, testImgPath } from '../../test-utils'

@factor/api/plugin-media/utils.ts renamed to @fiction/core/plugin-media/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TableMediaConfig } from '@factor/api'
1+
import type { TableMediaConfig } from '@fiction/core'
22

33
export type MediaDisplayObject = {
44
_key?: string

@factor/api/plugin-router/test/routes.ci.test.ts renamed to @fiction/core/plugin-router/test/routes.ci.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { createTestUtils } from '@factor/api/test-utils/init'
1+
import { createTestUtils } from '@fiction/core/test-utils/init'
22
import { describe, expect, it } from 'vitest'
3-
import { waitFor } from '@factor/api/utils'
3+
import { waitFor } from '@fiction/core/utils'
44
import { AppRoute } from '../appRoute'
55
import { FactorRouter } from '..'
66

@factor/api/plugin-server/test/server.ci.test.ts renamed to @fiction/core/plugin-server/test/server.ci.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
* @vitest-environment happy-dom
33
*/
44
import type http from 'node:http'
5-
import type { TestUtils } from '@factor/api/test-utils/init'
6-
import { createTestUtils } from '@factor/api/test-utils/init'
5+
import type { TestUtils } from '@fiction/core/test-utils/init'
6+
import { createTestUtils } from '@fiction/core/test-utils/init'
77
import { afterEach, beforeAll, describe, expect, it } from 'vitest'
8-
import { axios, randomBetween, vue } from '@factor/api/utils'
9-
import type { EndpointResponse } from '@factor/api/types'
10-
import { FactorUser } from '@factor/api/plugin-user'
8+
import { axios, randomBetween, vue } from '@fiction/core/utils'
9+
import type { EndpointResponse } from '@fiction/core/types'
10+
import { FactorUser } from '@fiction/core/plugin-user'
1111
import { FactorServer } from '..'
1212

1313
let testUtils: TestUtils
File renamed without changes.
File renamed without changes.

@factor/api/plugin-team/test/team.test.ts renamed to @fiction/core/plugin-team/test/team.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { beforeAll, describe, expect, it } from 'vitest'
2-
import type { TestUtils } from '@factor/api/test-utils/init'
3-
import { createTestUtils } from '@factor/api/test-utils/init'
4-
import type { OrganizationMember } from '@factor/api/plugin-user/types'
2+
import type { TestUtils } from '@fiction/core/test-utils/init'
3+
import { createTestUtils } from '@fiction/core/test-utils/init'
4+
import type { OrganizationMember } from '@fiction/core/plugin-user/types'
55
import { FactorTeam } from '..'
66
import { snap } from '../../test-utils'
77

File renamed without changes.

@factor/api/plugin-user/OrgWrapActions.vue renamed to @fiction/core/plugin-user/OrgWrapActions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts" setup>
2-
import ElButton from '@factor/ui/ElButton.vue'
2+
import ElButton from '@fiction/ui/ElButton.vue'
33
import { useService } from '../inject'
44
import type { FactorRouter } from '../plugin-router'
55
File renamed without changes.

@factor/api/plugin-user/test/org.ci.test.ts renamed to @fiction/core/plugin-user/test/org.ci.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from 'vitest'
2-
import { createTestUtils } from '@factor/api/test-utils/init'
2+
import { createTestUtils } from '@fiction/core/test-utils/init'
33
import type { Organization, User } from '..'
44

55
let user: User | undefined

@factor/api/plugin-user/test/user.browser.ci.test.ts renamed to @fiction/core/plugin-user/test/user.browser.ci.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @vitest-environment happy-dom
33
*/
4-
import { createTestUtils } from '@factor/api/test-utils/init'
4+
import { createTestUtils } from '@fiction/core/test-utils/init'
55
import { afterAll, describe, expect, it, vi } from 'vitest'
66
import { getTestEmail, snap } from '../../test-utils'
77
import type { User } from '../types'

@factor/api/plugin-user/test/user.ci.test.ts renamed to @fiction/core/plugin-user/test/user.ci.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import bcrypt from 'bcrypt'
2-
import { createTestUtils } from '@factor/api/test-utils/init'
2+
import { createTestUtils } from '@fiction/core/test-utils/init'
33

44
import { describe, expect, it, vi } from 'vitest'
55
import type { User } from '../types'

@factor/api/plugin-user/test/userGoogle.ci.test.ts renamed to @fiction/core/plugin-user/test/userGoogle.ci.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// import { FullUser } from "@factor/api"
1+
// import { FullUser } from "@fiction/core"
22
import { beforeAll, describe, expect, it, vi } from 'vitest'
33
import type { TestUtils } from '../../test-utils/init'
44
import { createTestUtils } from '../../test-utils/init'

@factor/api/plugin-user/test/userUpdate.ci.test.ts renamed to @fiction/core/plugin-user/test/userUpdate.ci.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createTestUtils } from '@factor/api/test-utils/init'
1+
import { createTestUtils } from '@fiction/core/test-utils/init'
22
import { afterAll, describe, expect, it } from 'vitest'
33
import { getTestEmail } from '../../test-utils'
44

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

@factor/api/test-utils/init.ts renamed to @fiction/core/test-utils/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from 'node:path'
2-
import { FactorUi } from '@factor/ui'
2+
import { FactorUi } from '@fiction/ui'
33
import { version as factorVersion } from '../package.json'
44
import type { FactorObject, FactorPlugin } from '../plugin'
55
import type { vue } from '../utils'
File renamed without changes.
File renamed without changes.
File renamed without changes.

@factor/api/test/logistic.ci.test.ts renamed to @fiction/core/test/logistic.ci.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import { beforeAll, describe, expect, it } from 'vitest'
6-
import { vue } from '@factor/api'
6+
import { vue } from '@fiction/core'
77
import { defineComponent } from 'vue'
88
import { useService } from '../inject'
99
import { Obj } from '../obj'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

@factor/api/utils/test/activeUser.ci.test.ts renamed to @fiction/core/utils/test/activeUser.ci.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from 'vitest'
2-
import type { User } from '@factor/api/plugin-user'
2+
import type { User } from '@fiction/core/plugin-user'
33
import { vue } from '../libraries'
44
import { createTestUtils } from '../../test-utils/init'
55

@factor/api/utils/test/buffer.ci.test.ts renamed to @fiction/core/utils/test/buffer.ci.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from 'vitest'
2-
import { WriteBuffer } from '@factor/api/utils/buffer'
2+
import { WriteBuffer } from '@fiction/core/utils/buffer'
33
import { waitFor } from '../utils'
44

55
describe('buffer', () => {

@factor/api/utils/test/fetch.ci.test.ts renamed to @fiction/core/utils/test/fetch.ci.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @vitest-environment happy-dom
33
*/
44
import { describe, expect, it } from 'vitest'
5-
import { fetchAdvanced } from '@factor/api/utils/fetch'
5+
import { fetchAdvanced } from '@fiction/core/utils/fetch'
66

77
describe('fetch', () => {
88
it('has window and fetch', () => {

@factor/api/utils/test/nodeTools.ci.test.ts renamed to @fiction/core/utils/test/nodeTools.ci.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'node:path'
22
import { Buffer } from 'node:buffer'
33
import { beforeAll, beforeEach, describe, expect, it, vi } from 'vitest'
4-
import type { MainFile } from '@factor/api/plugin-env'
4+
import type { MainFile } from '@fiction/core/plugin-env'
55
import type { ExecaChildProcess } from 'execa'
66
import { execaCommand } from 'execa'
77
import { executeCommand, getMainFilePath, importIfExists } from '../nodeUtils'
@@ -17,7 +17,7 @@ describe('node utils', () => {
1717
})
1818

1919
it('has right cwd', async () => {
20-
expect(cwd).toMatchInlineSnapshot(`"/Users/arpowers/Projects/core/@factor/www"`)
20+
expect(cwd).toMatchInlineSnapshot(`"/Users/arpowers/Projects/core/@fiction/www"`)
2121
})
2222
it('gets correct main file path', async () => {
2323
const filePath = getMainFilePath({ cwd })

@factor/api/utils/test/processor.ci.test.ts renamed to @fiction/core/utils/test/processor.ci.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { beforeAll, describe, expect, it } from 'vitest'
2-
import type { TestUtils } from '@factor/api/test-utils'
3-
import { createTestUtils } from '@factor/api/test-utils'
2+
import type { TestUtils } from '@fiction/core/test-utils'
3+
import { createTestUtils } from '@fiction/core/test-utils'
44
import type { Processor } from '../processors'
55
import { ObjectProcessor, Shortcodes } from '../processors'
66

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

@factor/plugin-admin-index/index.ts renamed to @fiction/plugin-admin-index/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @unocss-include
2-
import type { FactorPluginSettings } from '@factor/api'
3-
import { FactorPlugin } from '@factor/api'
4-
import type { FactorAdmin, FactorAdminSettings } from '@factor/plugin-admin'
2+
import type { FactorPluginSettings } from '@fiction/core'
3+
import { FactorPlugin } from '@fiction/core'
4+
import type { FactorAdmin, FactorAdminSettings } from '@fiction/plugin-admin'
55

66
export type BaseAdminPluginSettings = FactorAdminSettings & { factorAdmin: FactorAdmin }
77

@factor/plugin-admin-index/package.json renamed to @fiction/plugin-admin-index/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"dependencies": {
3-
"@factor/api": "workspace:*",
4-
"@factor/plugin-sites": "workspace:*"
3+
"@fiction/core": "workspace:*",
4+
"@fiction/plugin-sites": "workspace:*"
55
},
66
"gitHead": "b257411e1c6c32b52b444cc6f1518bf1bee1e480",
77
"license": "MIT",
88
"main": "index.ts",
9-
"name": "@factor/plugin-admin-index",
9+
"name": "@fiction/plugin-admin-index",
1010
"publishConfig": {
1111
"access": "public"
1212
},

@factor/plugin-admin/__plugin.ts renamed to @fiction/plugin-admin/__plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type {
22
FactorApp,
33
FactorPluginSettings,
44
FactorRouter,
5-
} from '@factor/api'
5+
} from '@fiction/core'
66
import {
77
FactorPlugin,
8-
} from '@factor/api'
8+
} from '@fiction/core'
99
import type { FactorAdmin, FactorAdminSettings } from '.'
1010

1111
export type AdminPluginSettings = {

@factor/plugin-admin/index.ts renamed to @fiction/plugin-admin/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import type {
1212
FactorUser,
1313
PluginSetupArgs,
1414
ServiceList,
15-
} from '@factor/api'
16-
import type { FactorMonitor } from '@factor/plugin-monitor'
17-
import { FactorPlugin, Query, safeDirname, vue } from '@factor/api'
18-
import type { FactorAdminPluginIndex } from '@factor/plugin-admin-index'
19-
import type { FactorAi } from '@factor/plugin-ai'
15+
} from '@fiction/core'
16+
import type { FactorMonitor } from '@fiction/plugin-monitor'
17+
import { FactorPlugin, Query, safeDirname, vue } from '@fiction/core'
18+
import type { FactorAdminPluginIndex } from '@fiction/plugin-admin-index'
19+
import type { FactorAi } from '@fiction/plugin-ai'
2020

2121
export type AdminEngineViewEntry = EngineViewEntry<{
2222
layoutFormat?: 'full' | 'standard'

0 commit comments

Comments
 (0)