File tree Expand file tree Collapse file tree 12 files changed +6
-49
lines changed Expand file tree Collapse file tree 12 files changed +6
-49
lines changed Original file line number Diff line number Diff line change @@ -25,25 +25,6 @@ module.exports = {
2525
2626 // TODO
2727 overrides : [
28- {
29- rules : {
30- "@typescript-eslint/no-unused-vars" : "off" ,
31- } ,
32- files : [
33- "src/client/components/Article.tsx" ,
34- "src/client/components/SidebarContents.tsx" ,
35- "src/client/templates/Sidebar.tsx" ,
36- "src/commands/login.ts" ,
37- "src/commands/preview.ts" ,
38- "src/commands/publish.ts" ,
39- "src/commands/pull.ts" ,
40- "src/lib/file-system-repo.test.ts" ,
41- "src/lib/file-system-repo.ts" ,
42- "src/server/api/readme.ts" ,
43- "src/server/app.ts" ,
44- "src/server/lib/get-current-user.ts" ,
45- ] ,
46- } ,
4728 {
4829 rules : {
4930 "react-hooks/exhaustive-deps" : "off" ,
Original file line number Diff line number Diff line change @@ -558,12 +558,6 @@ const mobileSidebarStyle = (isStateOpen: boolean) =>
558558 zIndex : 10 ,
559559 } ) ;
560560
561- const articlesMobileListStyle = css ( {
562- overflow : "hidden" ,
563- padding : `0 ${ getSpace ( 5 / 2 ) } px 0 ${ getSpace ( 2 ) } px` ,
564- boxSizing : "border-box" ,
565- } ) ;
566-
567561const headerStyle = css ( {
568562 alignItems : "center" ,
569563 fontSize : Typography . subhead1 ,
Original file line number Diff line number Diff line change 11import { css } from "@emotion/react" ;
22import type { ReactNode } from "react" ;
33import { Colors } from "../lib/variables" ;
4- import { viewport } from "../lib/mixins" ;
54
65interface Props {
76 children ?: ReactNode ;
Original file line number Diff line number Diff line change 1- import arg from "arg" ;
21import process from "node:process" ;
32import readline from "node:readline/promises" ;
43import { config } from "../lib/config" ;
54import { getQiitaApiInstance } from "../lib/get-qiita-api-instance" ;
6- import { QiitaApi } from "../qiita-api" ;
7-
8- export const login = async ( argv : string [ ] ) => {
9- const args = arg ( { } , { argv } ) ;
105
6+ export const login = async ( ) => {
117 const rl = readline . createInterface ( {
128 input : process . stdin ,
139 output : process . stdout ,
Original file line number Diff line number Diff line change 1- import arg from "arg" ;
21import { config } from "../lib/config" ;
32import { getFileSystemRepo } from "../lib/get-file-system-repo" ;
43import { getQiitaApiInstance } from "../lib/get-qiita-api-instance" ;
54import { syncArticlesFromQiita } from "../lib/sync-articles-from-qiita" ;
6- import { QiitaApi } from "../qiita-api" ;
75import { startLocalChangeWatcher , startServer } from "../server/app" ;
86
9- export const preview = async ( argv : string [ ] ) => {
10- const args = arg ( { } , { argv } ) ;
11-
7+ export const preview = async ( ) => {
128 const qiitaApi = await getQiitaApiInstance ( ) ;
139 const fileSystemRepo = await getFileSystemRepo ( ) ;
1410
Original file line number Diff line number Diff line change 11import arg from "arg" ;
22import process from "node:process" ;
33import { checkFrontmatterType } from "../lib/check-frontmatter-type" ;
4- import { config } from "../lib/config" ;
54import { QiitaItem } from "../lib/entities/qiita-item" ;
65import { getFileSystemRepo } from "../lib/get-file-system-repo" ;
76import { getQiitaApiInstance } from "../lib/get-qiita-api-instance" ;
87import { syncArticlesFromQiita } from "../lib/sync-articles-from-qiita" ;
98import { validateItem } from "../lib/validators/item-validator" ;
10- import { Item , QiitaApi } from "../qiita-api" ;
9+ import { Item } from "../qiita-api" ;
1110
1211export const publish = async ( argv : string [ ] ) => {
1312 const args = arg (
Original file line number Diff line number Diff line change 11import arg from "arg" ;
2- import { config } from "../lib/config" ;
32import { getFileSystemRepo } from "../lib/get-file-system-repo" ;
43import { getQiitaApiInstance } from "../lib/get-qiita-api-instance" ;
54import { syncArticlesFromQiita } from "../lib/sync-articles-from-qiita" ;
6- import { QiitaApi } from "../qiita-api" ;
7- import { startLocalChangeWatcher , startServer } from "../server/app" ;
85
96export const pull = async ( argv : string [ ] ) => {
107 const args = arg (
Original file line number Diff line number Diff line change 11import matter from "gray-matter" ;
2- import { Dirent } from "node:fs" ;
32import fs from "node:fs/promises" ;
43import { Item } from "../qiita-api" ;
54import { FileSystemRepo } from "./file-system-repo" ;
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ export class FileSystemRepo {
201201 ) ;
202202 }
203203
204- private defaultBasename ( fileContent : FileContent , _remote : boolean ) {
204+ private defaultBasename ( fileContent : FileContent ) {
205205 // TODO: Add article title to basename
206206 return fileContent . id as string ;
207207 }
@@ -239,7 +239,7 @@ export class FileSystemRepo {
239239 return ;
240240 }
241241 const filepath = this . getFilePath (
242- basename || this . defaultBasename ( fileContent , remote ) ,
242+ basename || this . defaultBasename ( fileContent ) ,
243243 remote
244244 ) ;
245245 const data = fileContent . toSaveFormat ( ) ;
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ import type Express from "express";
22import { Router } from "express" ;
33import fs from "node:fs/promises" ;
44import path from "node:path" ;
5- import { config } from "../../lib/config" ;
65import { getQiitaApiInstance } from "../../lib/get-qiita-api-instance" ;
7- import { QiitaApi } from "../../qiita-api" ;
86
97const readmeIndex = async ( req : Express . Request , res : Express . Response ) => {
108 try {
You can’t perform that action at this time.
0 commit comments