Design stuff shit
This commit is contained in:
parent
5dbf3d9af2
commit
23aefa268a
35 changed files with 5846 additions and 68 deletions
|
@ -1,34 +1,34 @@
|
|||
import { action } from "@ember/object";
|
||||
import Component from "@glimmer/component";
|
||||
import { action } from '@ember/object';
|
||||
import Component from '@glimmer/component';
|
||||
|
||||
export interface NoteSignature {
|
||||
// The arguments accepted by the component
|
||||
Args: {
|
||||
isInTimeline: boolean;
|
||||
note: {
|
||||
content: string;
|
||||
server: string;
|
||||
username: string;
|
||||
displayname: string;
|
||||
createdAt: number;
|
||||
editedAt?: number;
|
||||
};
|
||||
};
|
||||
// Any blocks yielded by the component
|
||||
Blocks: {
|
||||
default: [];
|
||||
};
|
||||
// The element to which `...attributes` is applied in the component template
|
||||
Element: null;
|
||||
// The arguments accepted by the component
|
||||
Args: {
|
||||
isInTimeline: boolean;
|
||||
note: {
|
||||
content: string;
|
||||
server: string;
|
||||
username: string;
|
||||
displayname: string;
|
||||
createdAt: number;
|
||||
editedAt?: number;
|
||||
};
|
||||
};
|
||||
// Any blocks yielded by the component
|
||||
Blocks: {
|
||||
default: [];
|
||||
};
|
||||
// The element to which `...attributes` is applied in the component template
|
||||
Element: null;
|
||||
}
|
||||
|
||||
export default class Note extends Component<NoteSignature> {
|
||||
@action
|
||||
openFullView() {
|
||||
if (this.args.isInTimeline) {
|
||||
alert("Would have opened note's own view");
|
||||
} else {
|
||||
console.log("Alread in note specific view, can't open it again");
|
||||
}
|
||||
}
|
||||
@action
|
||||
openFullView() {
|
||||
if (this.args.isInTimeline) {
|
||||
alert("Would have opened note's own view");
|
||||
} else {
|
||||
console.log("Alread in note specific view, can't open it again");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue