Skip to content

Commit

Permalink
style: formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
senkenn committed Aug 3, 2024
1 parent ad06608 commit eca1d4c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
4 changes: 3 additions & 1 deletion packages/zenn-cli/src/client/components/Loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ const StyledLoading = styled.div`
border: 4px solid var(--c-primary);
border-radius: 50%;
border-top-color: var(--c-primary-bg);
animation: ${rotate} 0.8s linear infinite, ${fadein} 0.7s;
animation:
${rotate} 0.8s linear infinite,
${fadein} 0.7s;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ const StyledBookHeader = styled.header`
.book-header__cover-img {
background: #fff;
object-fit: cover;
box-shadow: 0 9px 20px -9px rgba(0, 27, 68, 0.52),
box-shadow:
0 9px 20px -9px rgba(0, 27, 68, 0.52),
0 0 3px rgba(0, 21, 60, 0.1);
border-radius: 5px;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/zenn-cli/src/client/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
Expand Down
6 changes: 5 additions & 1 deletion packages/zenn-cli/src/server/commands/init.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { CliExecFn } from '../types';
import * as Log from '../lib/log';
import { detectPackageExecutor, getWorkingPath, generateFileIfNotExist } from '../lib/helper';
import {
detectPackageExecutor,
getWorkingPath,
generateFileIfNotExist,
} from '../lib/helper';
import { initHelpText, invalidOptionText } from '../lib/messages';
import arg from 'arg';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { isCodesandboxUrl } from '../../src/utils/url-matcher';
describe('isCodesandboxUrlのテスト', () => {
describe('Trueを返す場合', () => {
test('Codesandboxの埋め込みURL', () => {
const url =
'https://codesandbox.io/embed/new?view=Editor+%2B+Preview';
const url = 'https://codesandbox.io/embed/new?view=Editor+%2B+Preview';

expect(isCodesandboxUrl(url)).toBe(true);
});
Expand Down
4 changes: 3 additions & 1 deletion packages/zenn-markdown-html/src/utils/md-link-attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export function mdLinkAttributes(md: MarkdownIt) {
// 内部リンク
{
matcher(href: string) {
return href.match(/^(?:https:\/\/zenn\.dev$)|(?:https:\/\/zenn\.dev\/.*$)/);
return href.match(
/^(?:https:\/\/zenn\.dev$)|(?:https:\/\/zenn\.dev\/.*$)/
);
},
attrs: {
target: '_blank',
Expand Down

0 comments on commit eca1d4c

Please sign in to comment.