chore: Use kebab-case for file names

This commit is contained in:
syuilo 2020-04-26 11:48:09 +09:00
parent 9aac6a65c6
commit 69975c2fdd
8 changed files with 5 additions and 5 deletions

View file

@ -6,7 +6,7 @@ import { ensure } from '../../prelude/ensure';
import { SchemaType } from '../../misc/schema'; import { SchemaType } from '../../misc/schema';
import { awaitAll } from '../../prelude/await-all'; import { awaitAll } from '../../prelude/await-all';
import { convertLegacyReaction, convertLegacyReactions, decodeReaction } from '../../misc/reaction-lib'; import { convertLegacyReaction, convertLegacyReactions, decodeReaction } from '../../misc/reaction-lib';
import { toString } from '../../mfm/toString'; import { toString } from '../../mfm/to-string';
import { parse } from '../../mfm/parse'; import { parse } from '../../mfm/parse';
import { Emoji } from '../entities/emoji'; import { Emoji } from '../entities/emoji';
import { concat } from '../../prelude/array'; import { concat } from '../../prelude/array';

View file

@ -1,5 +1,5 @@
import { Note } from '../../../models/entities/note'; import { Note } from '../../../models/entities/note';
import { toHtml } from '../../../mfm/toHtml'; import { toHtml } from '../../../mfm/to-html';
import { parse } from '../../../mfm/parse'; import { parse } from '../../../mfm/parse';
export default function(note: Note) { export default function(note: Note) {

View file

@ -1,6 +1,6 @@
import { IObject } from '../type'; import { IObject } from '../type';
import { extractApHashtagObjects } from '../models/tag'; import { extractApHashtagObjects } from '../models/tag';
import { fromHtml } from '../../../mfm/fromHtml'; import { fromHtml } from '../../../mfm/from-html';
export function htmlToMfm(html: string, tag?: IObject | IObject[]) { export function htmlToMfm(html: string, tag?: IObject | IObject[]) {
const hashtagNames = extractApHashtagObjects(tag).map(x => x.name).filter((x): x is string => x != null); const hashtagNames = extractApHashtagObjects(tag).map(x => x.name).filter((x): x is string => x != null);

View file

@ -4,7 +4,7 @@ import config from '../../../config';
import Resolver from '../resolver'; import Resolver from '../resolver';
import { resolveImage } from './image'; import { resolveImage } from './image';
import { isCollectionOrOrderedCollection, isCollection, IPerson, getApId, getOneApHrefNullable, IObject, isPropertyValue, IApPropertyValue } from '../type'; import { isCollectionOrOrderedCollection, isCollection, IPerson, getApId, getOneApHrefNullable, IObject, isPropertyValue, IApPropertyValue } from '../type';
import { fromHtml } from '../../../mfm/fromHtml'; import { fromHtml } from '../../../mfm/from-html';
import { htmlToMfm } from '../misc/html-to-mfm'; import { htmlToMfm } from '../misc/html-to-mfm';
import { resolveNote, extractEmojis } from './note'; import { resolveNote, extractEmojis } from './note';
import { registerOrFetchInstanceDoc } from '../../../services/register-or-fetch-instance-doc'; import { registerOrFetchInstanceDoc } from '../../../services/register-or-fetch-instance-doc';

View file

@ -2,7 +2,7 @@ import renderImage from './image';
import renderKey from './key'; import renderKey from './key';
import config from '../../../config'; import config from '../../../config';
import { ILocalUser } from '../../../models/entities/user'; import { ILocalUser } from '../../../models/entities/user';
import { toHtml } from '../../../mfm/toHtml'; import { toHtml } from '../../../mfm/to-html';
import { parse } from '../../../mfm/parse'; import { parse } from '../../../mfm/parse';
import { getEmojis } from './note'; import { getEmojis } from './note';
import renderEmoji from './emoji'; import renderEmoji from './emoji';