| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,29 @@ | |||
| 1 | + --- | ||
| 2 | + name: Bug report | ||
| 3 | + about: 'We really appreciate your effort to provide feedback. Before opening a new | ||
| 4 | + issue, please make sure that this case is not already reported in GitHub as an | ||
| 5 | + issue or in StackOverflow as a question.' | ||
| 6 | + | ||
| 7 | + --- | ||
| 8 | + | ||
| 9 | + **Environment** | ||
| 10 | + Provide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project): | ||
| 11 | + - CLI: | ||
| 12 | + - Cross-platform modules: | ||
| 13 | + - Android Runtime: | ||
| 14 | + - iOS Runtime: | ||
| 15 | + - Plugin(s): | ||
| 16 | + | ||
| 17 | + **Describe the bug** | ||
| 18 | + <!-- A clear and concise description of what the bug is. Please, explain whether it's a build time error or a runtime error. More detailed logs can be easily obtained by following the instructions in this guide: https://docs.nativescript.org/get-support#how-to-obtain-diagnostic-reports. --> | ||
| 19 | + | ||
| 20 | + **To Reproduce** | ||
| 21 | + <!-- Add commands used or steps taken to reproduce the behaviour. --> | ||
| 22 | + | ||
| 23 | + **Expected behavior** | ||
| 24 | + | ||
| 25 | + **Sample project** | ||
| 26 | + <!-- If possible, provide a link from the [Playground](https://play.nativescript.org) with reproduction of the problem. If not, consider attaching a sample project or link to a repository with such project. --> | ||
| 27 | + | ||
| 28 | + **Additional context** | ||
| 29 | + <!-- Add any other context about the problem here. --> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,17 @@ | |||
| 1 | + --- | ||
| 2 | + name: Feature request | ||
| 3 | + about: Suggest an idea for this project | ||
| 4 | + | ||
| 5 | + --- | ||
| 6 | + | ||
| 7 | + **Is your feature request related to a problem? Please describe.** | ||
| 8 | + <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]. --> | ||
| 9 | + | ||
| 10 | + **Describe the solution you'd like** | ||
| 11 | + <!-- A clear and concise description of what you want to happen. --> | ||
| 12 | + | ||
| 13 | + **Describe alternatives you've considered** | ||
| 14 | + <!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
| 15 | + | ||
| 16 | + **Additional context** | ||
| 17 | + <!-- Add any other context or screenshots about the feature request here. --> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,5 +8,9 @@ | |||
| 8 | 8 | <Button text="promptText" tap="{{ promptText }}" /> | |
| 9 | 9 | <Button text="promptPass" tap="{{ promptPass }}" /> | |
| 10 | 10 | <Button text="promptEmail" tap="{{ promptEmail }}" /> | |
| 11 | + <Button text="promptCapitalizationNone" tap="{{ promptCapitalizationNone }}" /> | ||
| 12 | + <Button text="promptCapitalizationAll" tap="{{ promptCapitalizationAll }}" /> | ||
| 13 | + <Button text="promptCapitalizationSentences" tap="{{ promptCapitalizationSentences }}" /> | ||
| 14 | + <Button text="promptCapitalizationWords" tap="{{ promptCapitalizationWords }}" /> | ||
| 11 | 15 | </StackLayout> | |
| 12 | 16 | </Page> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -137,5 +137,81 @@ export class SettingsViewModel extends observable.Observable { | |||
| 137 | 137 | } | |
| 138 | 138 | }); | |
| 139 | 139 | } | |
| 140 | + | ||
| 141 | + public promptCapitalizationNone(args: observable.EventData) { | ||
| 142 | + dialogs.prompt({ | ||
| 143 | + title: "Name", | ||
| 144 | + message: "Enter name:", | ||
| 145 | + cancelButtonText: "Cancel", | ||
| 146 | + okButtonText: "OK", | ||
| 147 | + inputType: dialogs.inputType.text, | ||
| 148 | + capitalizationType: dialogs.capitalizationType.none | ||
| 149 | + }).then((promptResult) => { | ||
| 150 | + console.log("### Result: " + promptResult.result + ", Text: " + promptResult.text); | ||
| 151 | + if (promptResult.result) { | ||
| 152 | + this.set("name", promptResult.text); | ||
| 153 | + } | ||
| 154 | + else { | ||
| 155 | + this.set("name", "Harold Finch"); | ||
| 156 | + } | ||
| 157 | + }); | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + public promptCapitalizationAll(args: observable.EventData) { | ||
| 161 | + dialogs.prompt({ | ||
| 162 | + title: "Name", | ||
| 163 | + message: "Enter name:", | ||
| 164 | + cancelButtonText: "Cancel", | ||
| 165 | + okButtonText: "OK", | ||
| 166 | + inputType: dialogs.inputType.text, | ||
| 167 | + capitalizationType: dialogs.capitalizationType.all | ||
| 168 | + }).then((promptResult) => { | ||
| 169 | + console.log("### Result: " + promptResult.result + ", Text: " + promptResult.text); | ||
| 170 | + if (promptResult.result) { | ||
| 171 | + this.set("name", promptResult.text); | ||
| 172 | + } | ||
| 173 | + else { | ||
| 174 | + this.set("name", "Harold Finch"); | ||
| 175 | + } | ||
| 176 | + }); | ||
| 177 | + } | ||
| 178 | + | ||
| 179 | + public promptCapitalizationSentences(args: observable.EventData) { | ||
| 180 | + dialogs.prompt({ | ||
| 181 | + title: "Name", | ||
| 182 | + message: "Enter name:", | ||
| 183 | + cancelButtonText: "Cancel", | ||
| 184 | + okButtonText: "OK", | ||
| 185 | + inputType: dialogs.inputType.text, | ||
| 186 | + capitalizationType: dialogs.capitalizationType.sentences | ||
| 187 | + }).then((promptResult) => { | ||
| 188 | + console.log("### Result: " + promptResult.result + ", Text: " + promptResult.text); | ||
| 189 | + if (promptResult.result) { | ||
| 190 | + this.set("name", promptResult.text); | ||
| 191 | + } | ||
| 192 | + else { | ||
| 193 | + this.set("name", "Harold Finch"); | ||
| 194 | + } | ||
| 195 | + }); | ||
| 196 | + } | ||
| 197 | + | ||
| 198 | + public promptCapitalizationWords(args: observable.EventData) { | ||
| 199 | + dialogs.prompt({ | ||
| 200 | + title: "Name", | ||
| 201 | + message: "Enter name:", | ||
| 202 | + cancelButtonText: "Cancel", | ||
| 203 | + okButtonText: "OK", | ||
| 204 | + inputType: dialogs.inputType.text, | ||
| 205 | + capitalizationType: dialogs.capitalizationType.words | ||
| 206 | + }).then((promptResult) => { | ||
| 207 | + console.log("### Result: " + promptResult.result + ", Text: " + promptResult.text); | ||
| 208 | + if (promptResult.result) { | ||
| 209 | + this.set("name", promptResult.text); | ||
| 210 | + } | ||
| 211 | + else { | ||
| 212 | + this.set("name", "Harold Finch"); | ||
| 213 | + } | ||
| 214 | + }); | ||
| 215 | + } | ||
| 140 | 216 | } | |
| 141 | 217 | export var settingsViewModel = new SettingsViewModel(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,27 @@ | |||
| 1 | + <Page> | ||
| 2 | + <TabView style="color: green;"> | ||
| 3 | + <TabView.items> | ||
| 4 | + <TabViewItem title="Title" iconSource="res://add_to_fav"> | ||
| 5 | + <TabViewItem.view> | ||
| 6 | + <GridLayout> | ||
| 7 | + <Label text="Title and icon" verticalAlignment="center" horizontalAlignment="center"/> | ||
| 8 | + </GridLayout> | ||
| 9 | + </TabViewItem.view> | ||
| 10 | + </TabViewItem> | ||
| 11 | + <TabViewItem iconSource="res://add_to_fav"> | ||
| 12 | + <TabViewItem.view> | ||
| 13 | + <GridLayout> | ||
| 14 | + <Label text="Only icon" verticalAlignment="center" horizontalAlignment="center"/> | ||
| 15 | + </GridLayout> | ||
| 16 | + </TabViewItem.view> | ||
| 17 | + </TabViewItem> | ||
| 18 | + <TabViewItem title="Title"> | ||
| 19 | + <TabViewItem.view> | ||
| 20 | + <GridLayout> | ||
| 21 | + <Label text="Only title" verticalAlignment="center" horizontalAlignment="center"/> | ||
| 22 | + </GridLayout> | ||
| 23 | + </TabViewItem.view> | ||
| 24 | + </TabViewItem> | ||
| 25 | + </TabView.items> | ||
| 26 | + </TabView> | ||
| 27 | + </Page> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,5 +24,6 @@ export function loadExamples() { | |||
| 24 | 24 | examples.set("tab-view-bottom-position", "tab-view/tab-view-bottom-position"); | |
| 25 | 25 | examples.set("issue-5470", "tab-view/issue-5470"); | |
| 26 | 26 | examples.set("tab-view-tab-text-font-size", "tab-view/tab-view-tab-text-font-size"); | |
| 27 | + examples.set("tab-view-icon-title-placement", "tab-view/icon-title-placement"); | ||
| 27 | 28 | return examples; | |
| 28 | 29 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,10 +17,16 @@ | |||
| 17 | 17 | "tns-core-modules": "next" | |
| 18 | 18 | }, | |
| 19 | 19 | "devDependencies": { | |
| 20 | + "@types/chai": "~4.1.3", | ||
| 21 | + "@types/mocha": "~5.2.1", | ||
| 22 | + "@types/node": "10.11.4", | ||
| 20 | 23 | "babel-traverse": "6.26.0", | |
| 21 | 24 | "babel-types": "6.26.0", | |
| 22 | 25 | "babylon": "6.18.0", | |
| 23 | 26 | "lazy": "1.0.11", | |
| 27 | + "mocha": "~5.1.0", | ||
| 28 | + "mocha-junit-reporter": "~1.17.0", | ||
| 29 | + "mocha-multi": "~1.0.0", | ||
| 24 | 30 | "nativescript-dev-appium": "next", | |
| 25 | 31 | "nativescript-dev-typescript": "next", | |
| 26 | 32 | "nativescript-dev-webpack": "next" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -134,5 +134,13 @@ | |||
| 134 | 134 | "noReset": true, | |
| 135 | 135 | "fullReset": false, | |
| 136 | 136 | "app": "" | |
| 137 | + }, | ||
| 138 | + "sim.iPhoneX.iOS120": { | ||
| 139 | + "platformName": "iOS", | ||
| 140 | + "platformVersion": "12.0", | ||
| 141 | + "deviceName": "iPhone X", | ||
| 142 | + "noReset": true, | ||
| 143 | + "fullReset": false, | ||
| 144 | + "app": "" | ||
| 137 | 145 | } | |
| 138 | - } | ||
| 146 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,11 +20,14 @@ | |||
| 20 | 20 | "@types/chai": "~4.1.3", | |
| 21 | 21 | "@types/mocha": "~5.2.1", | |
| 22 | 22 | "@types/node": "^7.0.5", | |
| 23 | + "mocha": "^5.2.0", | ||
| 24 | + "mocha-junit-reporter": "^1.18.0", | ||
| 25 | + "mocha-multi": "^1.0.1", | ||
| 23 | 26 | "nativescript-dev-appium": "next", | |
| 24 | 27 | "nativescript-dev-typescript": "next", | |
| 25 | 28 | "nativescript-dev-webpack": "next", | |
| 26 | 29 | "rimraf": "^2.6.2", | |
| 27 | - "typescript": "^3.0.3" | ||
| 30 | + "typescript": "^3.1.1" | ||
| 28 | 31 | }, | |
| 29 | 32 | "scripts": { | |
| 30 | 33 | "e2e": "npm run clean-e2e && tsc -p e2e && mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments