Skip to content

Commit

Permalink
fix require res file
Browse files Browse the repository at this point in the history
  • Loading branch information
snowtafir committed Aug 8, 2024
1 parent 59cbcab commit d2da1e9
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yz-yuki-plugin",
"version": "1.0.2-rc.1",
"version": "1.0.2-rc.2",
"description": "优纪插件,yunzaijs 关于 微博推送、B站推送 等功能的拓展插件",
"author": "snowtafir",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/components/dynamic/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// up账户组件
import React from 'react';
import LogoText from './LogoText.tsx';
import { createRequire } from 'module';
import { createRequire } from 'react-puppeteer';
const require = createRequire(import.meta.url)


Expand Down
2 changes: 1 addition & 1 deletion src/components/dynamic/Content.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// DynamicContent.tsx
import React from 'react';
import { createRequire } from 'module';
import { createRequire } from 'react-puppeteer';
const require = createRequire(import.meta.url)

type ContentProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/dynamic/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React from 'react';
import { BOT_NAME, ConfigController } from 'yunzai';
import Config from '../../utils/config';
import { createRequire } from 'module';
import { createRequire } from 'react-puppeteer';

const botVersion = ConfigController.package?.version

Expand Down
2 changes: 1 addition & 1 deletion src/components/dynamic/ForwardContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React from 'react';
import Account from './Account.tsx';
import Content from './Content.tsx';
import { createRequire } from 'module'
import { createRequire } from 'react-puppeteer';
const require = createRequire(import.meta.url)

type ForwardContentProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/dynamic/LogoText.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// LogoText
// Logo 文本组件
import React from 'react';
import { createRequire } from 'module'
import { createRequire } from 'react-puppeteer';
const require = createRequire(import.meta.url)

type LogoTextProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/dynamic/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Account from './Account.tsx';
import Content from './Content.tsx';
import ForwardContent from './ForwardContent';
import Footer from './Footer';
import { createRequire } from 'module';
import { createRequire } from 'react-puppeteer';

const require = createRequire(import.meta.url)

Expand Down
3 changes: 1 addition & 2 deletions src/components/help/Help.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import React from 'react';
import { BOT_NAME, ConfigController } from 'yunzai';
import Config from '../../utils/config';

import { createRequire } from 'module';
import { createRequire } from 'react-puppeteer';

const botVersion = ConfigController.package?.version

Expand Down
3 changes: 1 addition & 2 deletions src/components/loginQrcode/Page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// QrcodeLoginPage.tsx
import React from 'react';
import { createRequire } from 'module';

import { createRequire } from 'react-puppeteer';
const require = createRequire(import.meta.url);

export type LoginProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/version/Version.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { BOT_NAME, ConfigController } from 'yunzai';
import Config from '../../utils/config';
import { createRequire } from 'module';
import { createRequire } from 'react-puppeteer';

const botVersion = ConfigController.package?.version

Expand Down

0 comments on commit d2da1e9

Please sign in to comment.