mirror of
https://github.com/outline/outline.git
synced 2025-03-14 10:07:11 +00:00
chore: Cleanup
This commit is contained in:
app
components/HoverPreview
models
shared/components
@ -27,7 +27,7 @@ const HoverPreviewLink = React.forwardRef(function _HoverPreviewLink(
|
||||
return (
|
||||
<Preview as="a" href={url} target="_blank" rel="noopener noreferrer">
|
||||
<Flex column ref={ref}>
|
||||
{thumbnailUrl ? <Thumbnail src={thumbnailUrl} alt={""} /> : null}
|
||||
{thumbnailUrl ? <Thumbnail src={thumbnailUrl} alt="" /> : null}
|
||||
<Card>
|
||||
<CardContent>
|
||||
<Flex column>
|
||||
|
@ -5,8 +5,6 @@ import Field from "./decorators/Field";
|
||||
class AuthenticationProvider extends Model {
|
||||
static modelName = "AuthenticationProvider";
|
||||
|
||||
id: string;
|
||||
|
||||
displayName: string;
|
||||
|
||||
name: string;
|
||||
|
@ -7,8 +7,6 @@ import Relation from "./decorators/Relation";
|
||||
class Event<T extends Model> extends Model {
|
||||
static modelName = "Event";
|
||||
|
||||
id: string;
|
||||
|
||||
name: string;
|
||||
|
||||
modelId: string | undefined;
|
||||
|
@ -11,8 +11,6 @@ import Model from "./base/Model";
|
||||
class FileOperation extends Model {
|
||||
static modelName = "FileOperation";
|
||||
|
||||
id: string;
|
||||
|
||||
@observable
|
||||
state: FileOperationState;
|
||||
|
||||
|
@ -12,8 +12,6 @@ import Relation from "~/models/decorators/Relation";
|
||||
class Integration<T = unknown> extends Model {
|
||||
static modelName = "Integration";
|
||||
|
||||
id: string;
|
||||
|
||||
type: IntegrationType;
|
||||
|
||||
service: IntegrationService;
|
||||
|
@ -9,8 +9,6 @@ import Relation from "./decorators/Relation";
|
||||
class Membership extends Model {
|
||||
static modelName = "Membership";
|
||||
|
||||
id: string;
|
||||
|
||||
userId: string;
|
||||
|
||||
@Relation(() => User, { onDelete: "cascade" })
|
||||
|
@ -12,6 +12,8 @@ import Relation from "./decorators/Relation";
|
||||
class Pin extends Model {
|
||||
static modelName = "Pin";
|
||||
|
||||
store: PinsStore;
|
||||
|
||||
/** The collection ID that the document is pinned to. If empty the document is pinned to home. */
|
||||
collectionId: string | null;
|
||||
|
||||
@ -35,7 +37,7 @@ class Pin extends Model {
|
||||
@AfterDelete
|
||||
@AfterRemove
|
||||
static updateCache(model: Pin) {
|
||||
const pins = model.store as PinsStore;
|
||||
const pins = model.store;
|
||||
|
||||
// Pinned to home
|
||||
if (!model.collectionId) {
|
||||
|
@ -7,8 +7,6 @@ import Relation from "./decorators/Relation";
|
||||
class View extends Model {
|
||||
static modelName = "View";
|
||||
|
||||
id: string;
|
||||
|
||||
documentId: string;
|
||||
|
||||
@Relation(() => Document)
|
||||
|
@ -33,7 +33,7 @@ const SVG = ({ size, emoji }: { size: number; emoji: string }) => (
|
||||
<svg width={size} height={size} xmlns="http://www.w3.org/2000/svg">
|
||||
<text
|
||||
x="50%"
|
||||
y={"55%"}
|
||||
y="55%"
|
||||
dominantBaseline="middle"
|
||||
textAnchor="middle"
|
||||
fontSize={size * 0.7}
|
||||
|
Reference in New Issue
Block a user