Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

structure to generate SideDrawer screenshots#8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
sombriks wants to merge1 commit intonativescript-vue:master
base:master
Choose a base branch
Loading
fromsombriks:master
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletionsapp/app.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,8 +2,7 @@ const Vue = require('nativescript-vue');

new Vue({
data: {
elements: [
{
elements: [{
name: 'ActivityIndicator',
component: () => require('./elements/components/ActivityIndicator')
},
Expand DownExpand Up@@ -99,6 +98,10 @@ new Vue({
name: 'PromptDialog',
component: () => require('./elements/dialogs/Prompt')
},
{
name: 'SideDrawer',
component: () => require('./elements/components/SideDrawer')
}
]
},

Expand Down
20 changes: 20 additions & 0 deletionsapp/elements/components/SideDrawer.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
module.exports = {
template: `
<RadSideDrawer ref="drawer">
<StackLayout ~drawerContent>
<StackLayout height="56" style="text-align: center; vertical-align: center;">
<label text="Navigation Menu" />
</StackLayout>
<StackLayout>
<button text="Friends" /> <button text="Posts"/>
</StackLayout>
</StackLayout>
<StackLayout ~mainContent>
<label text="This is the main content for the current Page!" textWrap="true" fontSize="13" padding="10" />
</StackLayout>
</RadSideDrawer>
`,
mounted() {
this.$refs.drawer.showDrawer()
}
}
13 changes: 7 additions & 6 deletionsgenerate-screenshots.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,6 +27,7 @@ const components = [
'ConfirmDialog',
'LoginDialog',
'PromptDialog',
'SideDrawer',
];

const makeDir = (path) => {
Expand All@@ -40,12 +41,12 @@ const makeDir = (path) => {
makeDir(`screenshots/${argv.runType}`);

AppiumDriver.createAppiumDriver(4723, {
isSauceLab: argv.sauceLab || false,
runType: argv.runType,
appPath: argv.appPath, //'nativescriptvueuitests-debug.apk',
appiumCaps: require('./appium.capabilities.json')[argv.runType],
verbose: argv.verbose || false,
})
isSauceLab: argv.sauceLab || false,
runType: argv.runType,
appPath: argv.appPath, //'nativescriptvueuitests-debug.apk',
appiumCaps: require('./appium.capabilities.json')[argv.runType],
verbose: argv.verbose || false,
})
.then(driver => run(driver))
.then(() => console.log('Buh-Bye...'))
.catch((err) => console.log(err));
Expand Down
1 change: 1 addition & 0 deletionspackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,6 +15,7 @@
"dependencies": {
"appium": "^1.7.1",
"nativescript-dev-appium": "^3.1.0-2017-10-6-1",
"nativescript-ui-sidedrawer": "^5.1.0",
"nativescript-vue": "^1.0.0",
"tns-core-modules": "~3.4.0",
"yargs": "^9.0.1"
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp