Skip to content
Permalink
Browse files

chore: add sidedrawer demo

  • Loading branch information...
Dimitar Tachev Dimitar Tachev
Dimitar Tachev authored and Dimitar Tachev committed Jun 13, 2018
1 parent 042000f commit fcec4f06b530ec903e2d15e226101f4967ba7c3c
Showing with 1,709 additions and 0 deletions.
  1. +1 −0 chart/.npmrc
  2. +1 −0 dataform/.npmrc
  3. +1 −0 listview/.npmrc
  4. +1 −0 sidedrawer/.npmrc
  5. +3 −0 sidedrawer/README.md
  6. +43 −0 sidedrawer/app/App_Resources/Android/AndroidManifest.xml
  7. +16 −0 sidedrawer/app/App_Resources/Android/app.gradle
  8. BIN sidedrawer/app/App_Resources/Android/drawable-hdpi/background.png
  9. BIN sidedrawer/app/App_Resources/Android/drawable-hdpi/icon.png
  10. BIN sidedrawer/app/App_Resources/Android/drawable-hdpi/logo.png
  11. BIN sidedrawer/app/App_Resources/Android/drawable-ldpi/background.png
  12. BIN sidedrawer/app/App_Resources/Android/drawable-ldpi/icon.png
  13. BIN sidedrawer/app/App_Resources/Android/drawable-ldpi/logo.png
  14. BIN sidedrawer/app/App_Resources/Android/drawable-mdpi/background.png
  15. BIN sidedrawer/app/App_Resources/Android/drawable-mdpi/icon.png
  16. BIN sidedrawer/app/App_Resources/Android/drawable-mdpi/logo.png
  17. +8 −0 sidedrawer/app/App_Resources/Android/drawable-nodpi/splash_screen.xml
  18. BIN sidedrawer/app/App_Resources/Android/drawable-xhdpi/background.png
  19. BIN sidedrawer/app/App_Resources/Android/drawable-xhdpi/icon.png
  20. BIN sidedrawer/app/App_Resources/Android/drawable-xhdpi/logo.png
  21. BIN sidedrawer/app/App_Resources/Android/drawable-xxhdpi/background.png
  22. BIN sidedrawer/app/App_Resources/Android/drawable-xxhdpi/icon.png
  23. BIN sidedrawer/app/App_Resources/Android/drawable-xxhdpi/logo.png
  24. BIN sidedrawer/app/App_Resources/Android/drawable-xxxhdpi/background.png
  25. BIN sidedrawer/app/App_Resources/Android/drawable-xxxhdpi/icon.png
  26. BIN sidedrawer/app/App_Resources/Android/drawable-xxxhdpi/logo.png
  27. +4 −0 sidedrawer/app/App_Resources/Android/values-v21/colors.xml
  28. +23 −0 sidedrawer/app/App_Resources/Android/values-v21/styles.xml
  29. +7 −0 sidedrawer/app/App_Resources/Android/values/colors.xml
  30. +45 −0 sidedrawer/app/App_Resources/Android/values/styles.xml
  31. +128 −0 sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
  32. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
  33. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
  34. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
  35. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
  36. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
  37. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
  38. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png
  39. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png
  40. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png
  41. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png
  42. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
  43. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
  44. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png
  45. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png
  46. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
  47. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
  48. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
  49. +6 −0 sidedrawer/app/App_Resources/iOS/Assets.xcassets/Contents.json
  50. +158 −0 sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
  51. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
  52. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
  53. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
  54. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
  55. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
  56. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
  57. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
  58. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
  59. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
  60. BIN sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
  61. +22 −0 sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json
  62. BIN ...pp/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
  63. BIN ...App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
  64. +22 −0 sidedrawer/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json
  65. BIN ...drawer/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
  66. BIN ...wer/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
  67. +47 −0 sidedrawer/app/App_Resources/iOS/Info.plist
  68. +49 −0 sidedrawer/app/App_Resources/iOS/LaunchScreen.storyboard
  69. +5 −0 sidedrawer/app/App_Resources/iOS/build.xcconfig
  70. +107 −0 sidedrawer/app/app.css
  71. +2 −0 sidedrawer/app/app.ts
  72. +40 −0 sidedrawer/app/examples/callbacks/drawer-callbacks-model.ts
  73. +35 −0 sidedrawer/app/examples/callbacks/drawer-callbacks-page.ts
  74. +43 −0 sidedrawer/app/examples/callbacks/drawer-callbacks-page.xml
  75. +23 −0 sidedrawer/app/examples/getting-started/getting-started-model.ts
  76. +9 −0 sidedrawer/app/examples/getting-started/getting-started-page.ts
  77. +34 −0 sidedrawer/app/examples/getting-started/getting-started-page.xml
  78. +52 −0 sidedrawer/app/examples/position/drawer-position-model.ts
  79. +7 −0 sidedrawer/app/examples/position/drawer-position-page.ts
  80. +48 −0 sidedrawer/app/examples/position/drawer-position-page.xml
  81. +60 −0 sidedrawer/app/examples/transitions/drawer-transitions-model.ts
  82. +11 −0 sidedrawer/app/examples/transitions/drawer-transitions-page.ts
  83. +41 −0 sidedrawer/app/examples/transitions/drawer-transitions-page.xml
  84. +37 −0 sidedrawer/app/navigation/categories-view-model.ts
  85. +11 −0 sidedrawer/app/navigation/category-list-nested-page.css
  86. +4 −0 sidedrawer/app/navigation/category-list-nested-page.ts
  87. +21 −0 sidedrawer/app/navigation/category-list-nested-page.xml
  88. +10 −0 sidedrawer/app/navigation/category-list-page.css
  89. +20 −0 sidedrawer/app/navigation/category-list-page.xml
  90. +48 −0 sidedrawer/app/navigation/example-page.ts
  91. +15 −0 sidedrawer/app/navigation/main-content-page.css
  92. +11 −0 sidedrawer/app/navigation/main-content-page.ts
  93. +17 −0 sidedrawer/app/navigation/main-content-page.xml
  94. +37 −0 sidedrawer/app/navigation/navigation-item.ts
  95. +77 −0 sidedrawer/app/navigation/page-view-model.ts
  96. +111 −0 sidedrawer/app/package.json
  97. +5 −0 sidedrawer/app/tests/tests.js
  98. +77 −0 sidedrawer/karma.conf.js
  99. +50 −0 sidedrawer/package.json
  100. +14 −0 sidedrawer/references.d.ts
  101. +42 −0 sidedrawer/tsconfig.json
@@ -0,0 +1 @@
package-lock=false
@@ -0,0 +1 @@
package-lock=false
@@ -0,0 +1 @@
package-lock=false
@@ -0,0 +1 @@
package-lock=false
@@ -0,0 +1,3 @@
# RadSideDrawer NativeScript Vanilla demo application

This application showcases scenarios of using the `RadSideDrawer` inside a TypeScript NativeScript Vanilla application.
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="__PACKAGE__"
android:versionCode="1"
android:versionName="1.0">

<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"/>

<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="__APILEVEL__"/>

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>

<application
android:name="com.tns.NativeScriptApplication"
android:allowBackup="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@style/AppTheme">

<activity
android:name="com.tns.NativeScriptActivity"
android:label="@string/title_activity_kimera"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@style/LaunchScreenTheme">

<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.tns.ErrorReportActivity"/>
</application>
</manifest>
@@ -0,0 +1,16 @@
// Add your native dependencies here:

// Uncomment to add recyclerview-v7 dependency
//dependencies {
// compile 'com.android.support:recyclerview-v7:+'
//}

android {
defaultConfig {
generatedDensities = []
applicationId = "org.nativescript.demo"
}
aaptOptions {
additionalParameters "--no-version-vectors"
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="fill">
<item>
<bitmap android:gravity="fill" android:src="@drawable/background" />
</item>
<item>
<bitmap android:gravity="center" android:src="@drawable/logo" />
</item>
</layer-list>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ns_accent">#3d5afe</color>
</resources>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<!-- Application theme -->
<style name="AppTheme" parent="AppThemeBase">
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
</style>

<!-- Default style for DatePicker - in spinner mode -->
<style name="SpinnerDatePicker" parent="android:Widget.Material.Light.DatePicker">
<item name="android:datePickerMode">spinner</item>
</style>

<!-- Default style for TimePicker - in spinner mode -->
<style name="SpinnerTimePicker" parent="android:Widget.Material.Light.TimePicker">
<item name="android:timePickerMode">spinner</item>
</style>

<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
<item name="android:elevation">4dp</item>
</style>
</resources>
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ns_primary">#F5F5F5</color>
<color name="ns_primaryDark">#757575</color>
<color name="ns_accent">#33B5E5</color>
<color name="ns_blue">#272734</color>
</resources>
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">

<!-- theme to use FOR launch screen-->
<style name="LaunchScreenThemeBase" parent="Theme.AppCompat.Light.NoActionBar">
<item name="toolbarStyle">@style/NativeScriptToolbarStyle</item>

<item name="colorPrimary">@color/ns_primary</item>
<item name="colorPrimaryDark">@color/ns_primaryDark</item>
<item name="colorAccent">@color/ns_accent</item>

<item name="android:windowBackground">@drawable/splash_screen</item>

<item name="android:windowActionBarOverlay">true</item>
<item name="android:windowTranslucentStatus">true</item>

</style>

<style name="LaunchScreenTheme" parent="LaunchScreenThemeBase">
</style>

<!-- theme to use AFTER launch screen is loaded-->
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar">
<item name="toolbarStyle">@style/NativeScriptToolbarStyle</item>

<item name="colorPrimary">@color/ns_primary</item>
<item name="colorPrimaryDark">@color/ns_primaryDark</item>
<item name="colorAccent">@color/ns_accent</item>

</style>

<style name="AppTheme" parent="AppThemeBase">
</style>

<!-- theme for actioon-bar -->
<style name="NativeScriptToolbarStyleBase" parent="Widget.AppCompat.Toolbar">
<item name="android:background">@color/ns_primary</item>
<item name="theme">@style/ThemeOverlay.AppCompat.ActionBar</item>
<item name="popupTheme">@style/ThemeOverlay.AppCompat</item>

</style>

<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
</style>
</resources>
@@ -0,0 +1,128 @@
{
"images" : [
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "icon-29.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "icon-29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "icon-29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "icon-40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "icon-40@3x.png",
"scale" : "3x"
},
{
"size" : "57x57",
"idiom" : "iphone",
"filename" : "icon-57.png",
"scale" : "1x"
},
{
"size" : "57x57",
"idiom" : "iphone",
"filename" : "icon-57@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "icon-60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "icon-60@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "icon-29.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "icon-29@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "icon-40.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "icon-40@2x.png",
"scale" : "2x"
},
{
"size" : "50x50",
"idiom" : "ipad",
"filename" : "icon-50.png",
"scale" : "1x"
},
{
"size" : "50x50",
"idiom" : "ipad",
"filename" : "icon-50@2x.png",
"scale" : "2x"
},
{
"size" : "72x72",
"idiom" : "ipad",
"filename" : "icon-72.png",
"scale" : "1x"
},
{
"size" : "72x72",
"idiom" : "ipad",
"filename" : "icon-72@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "icon-76.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "icon-76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "icon-83.5@2x.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}

0 comments on commit fcec4f0

Please sign in to comment.
You can’t perform that action at this time.