-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4df37bf
commit 0be1acd
Showing
26 changed files
with
2,689 additions
and
17,772 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,129 @@ | ||
<script setup lang="ts"> | ||
import { reactive, ref } from 'vue' | ||
import { action, computed, inject, makeObservable, observable } from "*"; | ||
const w = window | ||
const test = reactive({ 'test': 'test' }) | ||
const test2 = { 'test': ref({ test: 'test' }), 'array': ['test', 'test2'] } | ||
abstract class GrandParent { | ||
grandParent = 'test' | ||
get grandParentGetter () { | ||
return 'fun' | ||
} | ||
} | ||
abstract class MessagesPresenter extends GrandParent { | ||
showValidationWarning = null | ||
static _name = 'hi' | ||
constructor () { | ||
super() | ||
} | ||
init = () => {} | ||
abstract reset (): void | ||
get messages () { | ||
return 'yes' | ||
} | ||
unpackRepositoryPmToVm = (pm, userMessage) => {} | ||
} | ||
class Auth { | ||
test = 1 | ||
} | ||
class LoginRegisterPresenter extends MessagesPresenter { | ||
static test = 2 | ||
static test2 = 2 | ||
auth = new Auth() | ||
static testF () { | ||
return 1 | ||
} | ||
email = null | ||
password = null | ||
option = null | ||
constructor () { | ||
super() | ||
this.auth = new Auth() | ||
} | ||
// | ||
get viewTest () { | ||
this.auth.test = 2 | ||
console.log('yo') | ||
return 'yes' | ||
} | ||
set viewTest (value) { | ||
} | ||
setAuthRepoTest () { | ||
} | ||
reset () { | ||
} | ||
async login () { | ||
} | ||
register () { | ||
} | ||
logOut () { | ||
} | ||
} | ||
const presenter = new LoginRegisterPresenter() | ||
const proto = Object.getPrototypeOf(presenter) | ||
let val = ref({ }) | ||
setTimeout(() => { | ||
val.value = reactive({ | ||
test: 1 | ||
}) | ||
}, 1000) | ||
</script> | ||
<template> | ||
Hello World | ||
<router-view /> | ||
<h1>vue-dd integration tests</h1> | ||
<vue-dd name="val" v-model="val" /> | ||
<br /> | ||
<vue-dd name="window" :save-focus="false" :get-all-properties="false" v-model="w" /> | ||
<br /> | ||
<vue-dd name="test" get-all-properties v-model="test" /> | ||
<br /> | ||
<vue-dd name="test2" get-all-properties v-model="test2" /> | ||
<br /> | ||
<vue-dd name="presenter" :get-all-properties="true" v-model="presenter" /> | ||
<vue-dd name="LoginRegisterPresenter" :get-all-properties="true" v-model="LoginRegisterPresenter" /> | ||
|
||
|
||
|
||
</template> | ||
<style> | ||
|
||
</style> | ||
|
||
<style> | ||
.rendererParent { | ||
width: 100%; | ||
height: 580px; | ||
border: 1px solid black; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import { createApp } from "vue"; | ||
import { VueDd } from "vue-dd"; | ||
import router from "./router"; | ||
import { install } from "../src/index"; | ||
import App from "./App.vue"; | ||
|
||
const app = createApp(App); | ||
app.use(router); | ||
|
||
app.component("VueDd", VueDd); | ||
install(app); | ||
|
||
app.mount("#app"); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.