-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/bubble-ts
- Loading branch information
Showing
16 changed files
with
58 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
## zh-CN | ||
|
||
修改占位信息。 | ||
控制附件超出区域长度时的展示方式。 | ||
|
||
## en-US | ||
|
||
Modify placeholder information. | ||
Controls the layout of attachments when they exceed the area. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import './dist.test'; | ||
import './lib.test'; | ||
// Not applied yet | ||
// import './use-client.test'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import fs from 'node:fs'; | ||
import chalk from 'chalk'; | ||
import $ from 'dekko'; | ||
|
||
const includeUseClient = (filename: string) => | ||
fs.readFileSync(filename).toString().includes('"use client"'); | ||
|
||
if (process.env.LIB_DIR === 'dist') { | ||
$('dist/*') | ||
.isFile() | ||
.assert("doesn't contain use client", (filename: string) => !includeUseClient(filename)); | ||
} else { | ||
$('{es,lib}/index.js') | ||
.isFile() | ||
.assert('contain use client', (filename: string) => includeUseClient(filename)); | ||
|
||
$('{es,lib}/*/index.js') | ||
.isFile() | ||
.assert('contain use client', (filename: string) => includeUseClient(filename)); | ||
|
||
// check tsx files | ||
$('{es,lib}/typography/*.js') | ||
.isFile() | ||
.assert('contain use client', (filename: string) => includeUseClient(filename)); | ||
|
||
$('{es,lib}/typography/Base/*.js') | ||
.isFile() | ||
.filter((filename: string) => !filename.endsWith('/util.js')) | ||
.assert('contain use client', (filename: string) => includeUseClient(filename)); | ||
} | ||
|
||
// eslint-disable-next-line no-console | ||
console.log(chalk.green('✨ use client passed!')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,5 @@ declare module '@npmcli/run-script' { | |
} | ||
|
||
declare module '@microflash/rehype-figure'; | ||
|
||
declare module 'dekko'; |