Skip to content

Commit

Permalink
refactor: rename to core
Browse files Browse the repository at this point in the history
  • Loading branch information
EastSun5566 committed May 6, 2022
1 parent f91ce4d commit 57f8797
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion demo/src/components/Preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';

import './Preview.scss';

import { cg } from '../../cg';
import { cg } from '../../filter';
import { useFilters, useDownloadImage } from '../../hooks';

interface PreviewProps {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion demo/src/hooks/use-download-image.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useRef } from 'react';
import { cg } from '../cg';
import { cg } from '../filter';

interface useDownloadImageOptions {
downloadFileName?: string;
Expand Down
2 changes: 1 addition & 1 deletion demo/src/hooks/use-filters.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState, useEffect } from 'react';
import { cg } from '../cg';
import { cg } from '../filter';

interface useFiltersOptions {
initialValue?: string;
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* @author 汪東陽 EastSun5566 <https://github.com/EastSun5566>
*/

import { CCgram as _CCgram } from './CCgram';
import { CCgram as _CCgram } from './core';

export * from './filters';
export * from './CCgram';
export * from './core';
/** old Name, alias for `CCgram` */
export const CCGram = _CCgram;

Expand Down

0 comments on commit 57f8797

Please sign in to comment.