mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 14:46:03 +02:00
wip
This commit is contained in:
@@ -54,13 +54,13 @@ export default defineComponent({
|
||||
|
||||
methods: {
|
||||
signin() {
|
||||
this.$root.new(XSigninDialog, {
|
||||
os.popup(XSigninDialog, {
|
||||
autoSet: true
|
||||
});
|
||||
},
|
||||
|
||||
signup() {
|
||||
this.$root.new(XSignupDialog, {
|
||||
os.popup(XSignupDialog, {
|
||||
autoSet: true
|
||||
});
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
info(instance) {
|
||||
this.$root.new(MkInstanceInfo, {
|
||||
os.popup(MkInstanceInfo, {
|
||||
instance: instance
|
||||
});
|
||||
}
|
||||
|
||||
@@ -550,7 +550,7 @@ export default defineComponent({
|
||||
host: q
|
||||
});
|
||||
}
|
||||
this.$root.new(MkInstanceInfo, {
|
||||
os.popup(MkInstanceInfo, {
|
||||
instance: instance
|
||||
});
|
||||
},
|
||||
|
||||
@@ -439,7 +439,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
showFollowing() {
|
||||
this.$root.new(MkUsersDialog, {
|
||||
os.popup(MkUsersDialog, {
|
||||
title: this.$t('instanceFollowing'),
|
||||
pagination: {
|
||||
endpoint: 'federation/following',
|
||||
@@ -453,7 +453,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
showFollowers() {
|
||||
this.$root.new(MkUsersDialog, {
|
||||
os.popup(MkUsersDialog, {
|
||||
title: this.$t('instanceFollowers'),
|
||||
pagination: {
|
||||
endpoint: 'federation/followers',
|
||||
@@ -467,7 +467,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
showUsers() {
|
||||
this.$root.new(MkUsersDialog, {
|
||||
os.popup(MkUsersDialog, {
|
||||
title: this.$t('instanceUsers'),
|
||||
pagination: {
|
||||
endpoint: 'federation/users',
|
||||
|
||||
@@ -452,7 +452,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
addPinUser() {
|
||||
this.$root.new(MkUserSelect, {}).$once('selected', user => {
|
||||
os.popup(MkUserSelect, {}).$once('selected', user => {
|
||||
this.pinnedUsers = this.pinnedUsers.trim();
|
||||
this.pinnedUsers += '\n@' + getAcct(user);
|
||||
this.pinnedUsers = this.pinnedUsers.trim();
|
||||
@@ -460,7 +460,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
chooseProxyAccount() {
|
||||
this.$root.new(MkUserSelect, {}).$once('selected', user => {
|
||||
os.popup(MkUserSelect, {}).$once('selected', user => {
|
||||
this.proxyAccount = user;
|
||||
this.proxyAccountId = user.id;
|
||||
this.save(true);
|
||||
|
||||
@@ -180,7 +180,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
searchUser() {
|
||||
this.$root.new(MkUserSelect, {}).$once('selected', user => {
|
||||
os.popup(MkUserSelect, {}).$once('selected', user => {
|
||||
this.show(user);
|
||||
});
|
||||
},
|
||||
|
||||
@@ -132,7 +132,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
async startUser() {
|
||||
this.$root.new(MkUserSelect, {}).$once('selected', user => {
|
||||
os.popup(MkUserSelect, {}).$once('selected', user => {
|
||||
this.$router.push(`/my/messaging/${getAcct(user)}`);
|
||||
});
|
||||
},
|
||||
|
||||
@@ -220,7 +220,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
async insertEmoji(ev) {
|
||||
const vm = this.$root.new(await import('@/components/emoji-picker.vue'), {
|
||||
const vm = os.popup(await import('@/components/emoji-picker.vue'), {
|
||||
source: ev.currentTarget || ev.target
|
||||
}).$once('chosen', emoji => {
|
||||
insertTextAtCursor(this.$refs.text, emoji);
|
||||
|
||||
@@ -177,7 +177,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
addUser() {
|
||||
this.$root.new(MkUserSelect, {}).$once('selected', user => {
|
||||
os.popup(MkUserSelect, {}).$once('selected', user => {
|
||||
this.users = this.users.trim();
|
||||
this.users += '\n@' + getAcct(user);
|
||||
this.users = this.users.trim();
|
||||
|
||||
@@ -89,7 +89,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
invite() {
|
||||
this.$root.new(MkUserSelect, {}).$once('selected', user => {
|
||||
os.popup(MkUserSelect, {}).$once('selected', user => {
|
||||
os.api('users/groups/invite', {
|
||||
groupId: this.group.id,
|
||||
userId: user.id
|
||||
@@ -134,7 +134,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
transfer() {
|
||||
this.$root.new(MkUserSelect, {}).$once('selected', user => {
|
||||
os.popup(MkUserSelect, {}).$once('selected', user => {
|
||||
os.api('users/groups/transfer', {
|
||||
groupId: this.group.id,
|
||||
userId: user.id
|
||||
|
||||
@@ -88,7 +88,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
addUser() {
|
||||
this.$root.new(MkUserSelect, {}).$once('selected', user => {
|
||||
os.popup(MkUserSelect, {}).$once('selected', user => {
|
||||
os.api('users/lists/push', {
|
||||
listId: this.list.id,
|
||||
userId: user.id
|
||||
|
||||
@@ -26,7 +26,7 @@ export default defineComponent({
|
||||
},
|
||||
methods: {
|
||||
async generateToken() {
|
||||
this.$root.new(await import('@/components/token-generate-window.vue'), {
|
||||
os.popup(await import('@/components/token-generate-window.vue'), {
|
||||
}).$on('ok', async ({ name, permissions }) => {
|
||||
const { token } = await os.api('miauth/gen-token', {
|
||||
session: null,
|
||||
|
||||
@@ -114,7 +114,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
async configure() {
|
||||
this.$root.new(await import('@/components/notification-setting-window.vue'), {
|
||||
os.popup(await import('@/components/notification-setting-window.vue'), {
|
||||
includingTypes: this.$store.state.i.includingNotificationTypes,
|
||||
showGlobalToggle: false,
|
||||
}).$on('ok', async ({ includingTypes: value }: any) => {
|
||||
|
||||
@@ -58,7 +58,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
preview(ev) {
|
||||
const picker = this.$root.new(MkReactionPicker, {
|
||||
const picker = os.popup(MkReactionPicker, {
|
||||
source: ev.currentTarget || ev.target,
|
||||
reactions: this.splited,
|
||||
showFocus: false,
|
||||
@@ -73,7 +73,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
async chooseEmoji(ev) {
|
||||
const vm = this.$root.new(await import('@/components/emoji-picker.vue'), {
|
||||
const vm = os.popup(await import('@/components/emoji-picker.vue'), {
|
||||
source: ev.currentTarget || ev.target
|
||||
}).$once('chosen', emoji => {
|
||||
this.reactions += emoji;
|
||||
|
||||
@@ -118,7 +118,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
const token = permissions == null || permissions.length === 0 ? null : await new Promise(async (res, rej) => {
|
||||
this.$root.new(await import('@/components/token-generate-window.vue'), {
|
||||
os.popup(await import('@/components/token-generate-window.vue'), {
|
||||
title: this.$t('tokenRequested'),
|
||||
information: this.$t('pluginTokenRequestedDescription'),
|
||||
initialName: name,
|
||||
|
||||
@@ -60,7 +60,7 @@ export default defineComponent({
|
||||
if (this.title) text += `【${this.title}】\n`;
|
||||
if (this.text) text += `${this.text}\n`;
|
||||
if (this.url) text += `${this.url}`;
|
||||
this.$root.new(PostFormDialog, {
|
||||
os.popup(PostFormDialog, {
|
||||
instant: true,
|
||||
initialText: text.trim()
|
||||
}).$once('posted', () => {
|
||||
|
||||
@@ -189,7 +189,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
menu() {
|
||||
this.$root.new(XUserMenu, {
|
||||
os.popup(XUserMenu, {
|
||||
source: this.$refs.menu,
|
||||
user: this.user
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user