Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
0d7861a
MOBILE-2073 database: Basic module structure
crazyserver May 29, 2017
6ec56ec
MOBILE-2140 style: Add variables for init screen
crazyserver May 29, 2017
879c454
MOBILE-2140 style: Change logo images name
crazyserver May 29, 2017
3fc3c1b
MOBILE-2140 style: Add variables for init spinner
crazyserver May 30, 2017
9765dda
MOBILE-2140 style: Add boolean to hide site name and url
crazyserver Jun 6, 2017
572878c
MOBILE-2140 style: Add variables to control init screen logo
crazyserver Jun 6, 2017
d205a55
MOBILE-2140 style: Add variables to control sidemenu
crazyserver Jun 6, 2017
914a3a4
MOBILE-2118 database: View entry list
crazyserver May 30, 2017
46d6f28
MOBILE-2119 data: Show single view entries
crazyserver Jun 6, 2017
75ea51d
MOBILE-2123 data: Approve/Disapprove entries
crazyserver Jun 9, 2017
b4657ac
MOBILE-2125 data: Delete entry
crazyserver Jun 12, 2017
3f09c90
Merge pull request #1063 from crazyserver/MOBILE-2073
jleyva Jun 12, 2017
c01627f
Merge pull request #1064 from crazyserver/MOBILE-2118
jleyva Jun 12, 2017
9645596
Merge pull request #1065 from crazyserver/MOBILE-2119
jleyva Jun 12, 2017
bba6dfd
Merge pull request #1066 from crazyserver/MOBILE-2123
jleyva Jun 12, 2017
c3843af
Merge pull request #1067 from crazyserver/MOBILE-2125
jleyva Jun 12, 2017
33410f5
MOBILE-2147 electron: Basic Electron support
dpalou May 29, 2017
1fa2c0f
MOBILE-2147 electron: Emulate Cordova File API
dpalou May 31, 2017
92ab256
MOBILE-2147 electron: Open files and URLs with the right external app
dpalou May 31, 2017
8a894c0
MOBILE-2147 electron: Allow uploading files with file picker
dpalou Jun 2, 2017
8e39391
MOBILE-2147 electron: Basic Globalization support
dpalou Jun 2, 2017
e5eff55
MOBILE-2147 electron: Support unzip, including progress
dpalou Jun 5, 2017
c9e23b2
MOBILE-2147 electron: Wait for window to be ready before show
dpalou Jun 5, 2017
eb008b1
MOBILE-2147 electron: Support copy and paste from clipboard
dpalou Jun 5, 2017
16af716
MOBILE-2147 electron: Support Custom URL scheme
dpalou Jun 6, 2017
be7034c
MOBILE-2147 electron: Support InAppBrowser
dpalou Jun 7, 2017
862b851
MOBILE-2147 calendar: Open event in split view when notification clicked
dpalou Jun 9, 2017
53e1088
MOBILE-2147 electron: Support local notifications
dpalou Jun 9, 2017
92e3dd4
MOBILE-2147 electron: Support app badge
dpalou Jun 9, 2017
04d054f
MOBILE-2147 electron: Move emulator code to a new component
dpalou Jun 12, 2017
bcfdd1a
MOBILE-2120 data: Support basic search
crazyserver Jun 13, 2017
7761cf1
MOBILE-2120 data: Support field plugins
crazyserver Jun 13, 2017
252c410
MOBILE-2120 data: Support other fields search
crazyserver Jun 19, 2017
dde006c
Merge pull request #1069 from crazyserver/MOBILE-2120
jleyva Jun 21, 2017
1be7ef7
MOBILE-2121 core: Add a generic file session manager
crazyserver Jun 21, 2017
25ab54c
MOBILE-2121 data: Add and edit form structure
crazyserver Jun 19, 2017
0f160d5
MOBILE-2121 data: Render fields to add and edit
crazyserver Jun 20, 2017
a44fed8
MOBILE-2121 data: Send data to the server
crazyserver Jun 20, 2017
e815b35
MOBILE-2146 core: Implement mmChrono directive
dpalou Jun 21, 2017
91c836b
MOBILE-2146 media: Allow recording video
dpalou Jun 21, 2017
8b5edd5
MOBILE-2146 media: Allow capturing images
dpalou Jun 22, 2017
1fc5e81
MOBILE-2146 media: Allow capturing audio
dpalou Jun 22, 2017
42feb7a
MOBILE-2146 electron: Style audio and video recording
crazyserver Jun 23, 2017
7789532
Merge pull request #1070 from dpalou/MOBILE-2147
jleyva Jun 26, 2017
9befd13
MOBILE-2145 electron: Simulate push notifications in desktop
dpalou Jun 15, 2017
0bb4843
MOBILE-2145 electron: Use ToastNotification and TileNotification
dpalou Jun 26, 2017
0acb9c1
Merge pull request #1071 from dpalou/MOBILE-2146
jleyva Jun 26, 2017
c624fb8
Merge pull request #1072 from dpalou/MOBILE-2145
jleyva Jun 27, 2017
7d98ce4
MOBILE-2136 course: Support links to sections
dpalou Jun 27, 2017
3da835b
MOBILE-2148: Prepare app for Windows Store
dpalou Jun 27, 2017
b29b729
MOBILE-2148 notifications: Fix trigger in desktop for distant events
dpalou Jun 27, 2017
fff34d2
MOBILE-2148 electron: Read customurlscheme from config.json
dpalou Jun 27, 2017
e9380fd
Merge pull request #1073 from dpalou/MOBILE-2136
jleyva Jun 27, 2017
b10af08
Merge pull request #1074 from dpalou/MOBILE-2148
jleyva Jun 27, 2017
15d6d4f
MOBILE-2155 lesson: Fix videos in lesson page
dpalou Jun 28, 2017
62e38bc
MOBILE-839 icons: Fix icon size for Windows
dpalou Jun 28, 2017
87b1dd1
MOBILE-2121 data: Check if fields have changed
crazyserver Jun 21, 2017
9c0317a
MOBILE-839 login: Fix SSO login in Windows
dpalou Jun 28, 2017
30bac53
MOBILE-839 styles: Hide pseudo-elements in date input
dpalou Jun 28, 2017
2bebb0d
MOBILE-839 desktop: Improve error handling in capture media
dpalou Jun 28, 2017
5e0a62d
MOBILE-2158 lesson: Improve retrieve buttons for content pages
dpalou Jun 29, 2017
2e930c3
Merge pull request #1075 from crazyserver/MOBILE-2140
jleyva Jun 29, 2017
dc4a5da
MOBILE-839 udesktop Fix promise not resolved when open file
dpalou Jun 29, 2017
3513336
MOBILE-839 desktop: Focus app when notification clicked
dpalou Jun 29, 2017
d49025a
MOBILE-839 desktop: Show error if cannot get stream.
dpalou Jun 30, 2017
7b08b1b
Merge pull request #1076 from dpalou/MOBILE-839
jleyva Jun 30, 2017
0fad762
MOBILE-2121 data: Show error messages
crazyserver Jun 28, 2017
ecce746
MOBILE-2122 data: Support native comments
crazyserver Jun 29, 2017
c12f1f8
Merge pull request #1077 from dpalou/MOBILE-2158
jleyva Jun 30, 2017
23fdcef
Merge pull request #1078 from crazyserver/MOBILE-2121
jleyva Jun 30, 2017
610bbef
MOBILE-2122 core: Improve relative link handling
crazyserver Jun 29, 2017
0866fce
Merge pull request #1079 from crazyserver/MOBILE-2122
jleyva Jun 30, 2017
f4f6e06
MOBILE-839 desktop: Maximize window
dpalou Jun 30, 2017
2694dd7
MOBILE-839 windows: Avoid notification error in development
dpalou Jul 3, 2017
7c4a78a
MOBILE-839 windows: Use 'en' and increase store logo
dpalou Jul 3, 2017
ad48149
MOBILE-2136 course: Fix section opened when it shouldn't
dpalou Jul 4, 2017
44b7cae
Merge pull request #1081 from dpalou/MOBILE-2136
jleyva Jul 4, 2017
5b7d6cb
MOBILE-2139 config: Refurbish config.xml and change author
dpalou Jul 4, 2017
cf3eb13
MOBILE-2116 icons: Use flat icons
dpalou Jul 4, 2017
16c9cff
Merge pull request #1082 from dpalou/MOBILE-2155
jleyva Jul 4, 2017
56dfbdb
Merge pull request #1083 from dpalou/MOBILE-839
jleyva Jul 4, 2017
d171179
Merge pull request #1084 from moodlehq/desktop
jleyva Jul 4, 2017
a66a42f
MOBILE-2127 data: Add offline store
crazyserver Jun 30, 2017
9a0ae18
MOBILE-2127 data: Render entries
crazyserver Jul 5, 2017
604edd5
MOBILE-2127 data: Offline approve, disapprove and delete actions
crazyserver Jul 6, 2017
ad4abf4
Merge pull request #1085 from dpalou/MOBILE-2139
jleyva Jul 10, 2017
d60c32b
MOBILE-2127 fs: Fix copy file in browser
dpalou Jul 10, 2017
d617e9b
MOBILE-2127 fs: Fix missing parameter error in browser
dpalou Jul 10, 2017
cade2c2
MOBILE-2127 data: Edit entries in offline mode
crazyserver Jul 7, 2017
43bfa52
MOBILE-2175 sidemenu: Support 'app' custom items
dpalou Jul 14, 2017
8e374a3
MOBILE-2170 ionic: Fix scroll with trackpad when hovering deep items
dpalou Jul 14, 2017
6c6fd78
MOBILE-2127 data: Add entries in offline mode
crazyserver Jul 12, 2017
851379a
MOBILE-2127 data: Sync activity
crazyserver Jul 17, 2017
7a79bda
Merge pull request #1090 from crazyserver/MOBILE-2127
jleyva Jul 20, 2017
4838d4f
MOBILE-2131 data: Apply UX changes
crazyserver Jul 20, 2017
fbbee5c
MOBILE-2180 desktop: Focus when relaunched and use exit instead of quit
dpalou Jul 20, 2017
eef69ee
Merge pull request #1091 from crazyserver/MOBILE-2131
jleyva Jul 21, 2017
12225e0
MOBILE-2169 errors: Improve errors when offline
dpalou Jul 17, 2017
e76ed18
Merge pull request #1092 from dpalou/MOBILE-2180
jleyva Jul 21, 2017
4214e94
Merge pull request #1093 from dpalou/MOBILE-2175
jleyva Jul 21, 2017
6db1bdc
Merge pull request #1094 from dpalou/MOBILE-2170
jleyva Jul 21, 2017
1a234be
Merge pull request #1095 from dpalou/MOBILE-2169
jleyva Jul 21, 2017
8a5f947
MOBILE-2117 data: Add moreurl action exception
crazyserver Jul 21, 2017
127e88e
Merge pull request #1096 from crazyserver/MOBILE-2117
jleyva Jul 21, 2017
d038cc0
MOBILE-2178 lesson: Support lesson grade links
dpalou Jul 24, 2017
aa89d43
MOBILE-2178 links: Treat mail/tel/geo links as absolute
dpalou Jul 24, 2017
23caf9d
Merge pull request #1099 from dpalou/MOBILE-2178
jleyva Jul 24, 2017
4c12173
MOBILE-2178 attachments: Fix existing attachments not shown
dpalou Jul 24, 2017
257fd97
MOBILE-2178 survey: Remove HTML from select question
dpalou Jul 24, 2017
fe23824
Merge pull request #1100 from dpalou/MOBILE-2178
jleyva Jul 24, 2017
dd87833
MOBILE-2178 scorm: Hide module spinner if WS call fails
dpalou Jul 25, 2017
b9280b6
MOBILE-2178 upload: Fix wrong max size in upload File
dpalou Jul 25, 2017
4a4b44d
Merge pull request #1101 from dpalou/MOBILE-2178
jleyva Jul 25, 2017
f8b847f
MOBILE-2178 database: Fix database prefetch
dpalou Jul 25, 2017
ca56066
MOBILE-2178 database: Fix isEmpty and pagination in list
dpalou Jul 25, 2017
cfa3fc8
MOBILE-2178 database: Use row/col styles in database tables
dpalou Jul 25, 2017
ab6db79
MOBILE-2178 database: Don't force cache in getAllEntriesIds
dpalou Jul 26, 2017
0fad8c1
MOBILE-2178 modules: Show last download time if no timemodified
dpalou Jul 26, 2017
ec33b4a
MOBILE-2178 database: Improve date field in edit form
dpalou Jul 26, 2017
d064e2e
Merge pull request #1102 from dpalou/MOBILE-2178
jleyva Jul 26, 2017
9283f82
MOBILE-2178 database: Don't save offline if fieldnotifications
dpalou Jul 26, 2017
6c272b4
MOBILE-2156 lang: Sync with amos for new languages
jleyva Jul 26, 2017
595bf3a
MOBILE-2156 lang: Auto-translation
jleyva Jul 26, 2017
d338285
MOBILE-2156 lang: Re-sync with amos for new languages
jleyva Jul 26, 2017
65fc720
Merge pull request #1104 from jleyva/MOBILE-2156
jleyva Jul 26, 2017
74a9f3e
MOBILE-2178 database: Allow managing own entries
dpalou Jul 27, 2017
876bcd7
MOBILE-2178 database: Fix cache presets in search entries
dpalou Jul 27, 2017
736a8be
MOBILE-2178 lesson: Change lesson string
dpalou Jul 27, 2017
253e957
MOBILE-2178 database: Remove 'fields' from offline storage indexes
dpalou Jul 27, 2017
3fab7f5
MOBILE-2178 database: Prefetch getFields WS call
dpalou Jul 27, 2017
b1225c3
MOBILE-2178 database: Allow viewing offline entries
dpalou Jul 27, 2017
0340386
Merge pull request #1105 from dpalou/MOBILE-2178
jleyva Jul 27, 2017
99a47b8
MOBILE-2178 database: Case insensitive match replacing action templates
crazyserver Jul 27, 2017
754ba55
MOBILE-2178 database: Fix url field type on show mode
crazyserver Jul 27, 2017
4dbd06a
MOBILE-2178 formattext: Get video data from data-setup-lazy attribute
crazyserver Jul 27, 2017
c994983
MOBILE-2178 database: Do not allow to edit a deleted offline entry
crazyserver Jul 27, 2017
c343b32
Merge pull request #1106 from crazyserver/MOBILE-2178
jleyva Jul 27, 2017
57fec3f
MOBILE-2178 database: Update fields data when PTR
dpalou Jul 27, 2017
c698bd6
MOBILE-2178 database: Allow editing offline entries in offline
dpalou Jul 27, 2017
7f34948
MOBILE-2178 database: Fix sync errors and autom sync detection
dpalou Jul 27, 2017
cf352f7
MOBILE-2178 release: Delete unused old language files
jleyva Jul 27, 2017
46dac07
MOBILE-2178 release: Auto-translate strings
jleyva Jul 27, 2017
fb0357c
MOBILE-2178 release: Auto-translated strings
jleyva Jul 27, 2017
61bd946
Merge pull request #1107 from jleyva/MOBILE-2178
jleyva Jul 27, 2017
d1d53d1
MOBILE-2178 database: Show offline new entries if no online
dpalou Jul 28, 2017
701d42b
Merge pull request #1108 from crazyserver/MOBILE-2178
jleyva Jul 28, 2017
7625160
Merge pull request #1109 from dpalou/MOBILE-2178
jleyva Jul 28, 2017
8222b41
MOBILE-2178 ionic: Fix keyboard hiding deep input elements
dpalou Jul 28, 2017
47311a6
Merge pull request #1110 from dpalou/MOBILE-2178
jleyva Jul 28, 2017
b02a850
MOBILE-2178 database: Show comments in single view
dpalou Jul 28, 2017
ee69bd7
Merge pull request #1111 from dpalou/MOBILE-2178
jleyva Jul 28, 2017
99d4012
MOBILE-2178 database: Fix clicking links
dpalou Jul 28, 2017
7dd7efc
MOBILE-2178 database: Fix prefetch intro files
dpalou Jul 28, 2017
6ebd806
MOBILE-2178 database: Don't use directive for approvalstatus action
dpalou Jul 28, 2017
3f554c3
MOBILE-2178 database: Use DESC order by default
dpalou Jul 28, 2017
ffa0b51
Merge pull request #1112 from dpalou/MOBILE-2178
jleyva Jul 28, 2017
de32b32
MOBILE-2178 release: Automatic translation
jleyva Jul 28, 2017
3e69bb5
MOBILE-2178 release: Sync languages with AMOS
jleyva Jul 28, 2017
1c1bad5
MOBILE-2178 release: Bump version numbers
jleyva Jul 28, 2017
aa911b6
Merge pull request #1113 from jleyva/MOBILE-2178
jleyva Jul 28, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ www/build
.sass-cache/
www/lib
e2e/build
/desktop
44 changes: 44 additions & 0 deletions AppXManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities">
<Identity Name="3312ADB7.MoodleDesktop"
ProcessorArchitecture="x64"
Publisher="CN=33CDCDF6-1EB5-4827-9897-ED25C91A32F6"
Version="3.3.0.0" />
<Properties>
<DisplayName>Moodle Desktop</DisplayName>
<PublisherDisplayName>Moodle Pty Ltd.</PublisherDisplayName>
<Description>The official app for Moodle.</Description>
<Logo>assets\StoreLogo.png</Logo>
</Properties>
<Resources>
<Resource Language="en" />
</Resources>
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14316.0" MaxVersionTested="10.0.14316.0" />
</Dependencies>
<Capabilities>
<rescap:Capability Name="runFullTrust"/>
</Capabilities>
<Applications>
<Application Id="com.moodle.moodlemobile" Executable="app\MoodleDesktop.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements
BackgroundColor="#464646"
DisplayName="Moodle Desktop"
Square150x150Logo="assets\Square150x150Logo.png"
Square44x44Logo="assets\Square44x44Logo.png"
Description="Moodle Desktop: The official desktop app for Moodle.">
<uap:DefaultTile Wide310x150Logo="assets\Wide310x150Logo.png" />
</uap:VisualElements>
<Extensions>
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="moodlemobile">
<uap:DisplayName>Moodle Mobile URI Scheme</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
</Extensions>
</Application>
</Applications>
</Package>
162 changes: 87 additions & 75 deletions config.xml
Original file line number Diff line number Diff line change
@@ -1,77 +1,89 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.moodle.moodlemobile" version="3.3.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Moodle Mobile</name>
<description>Official Moodle Mobile app</description>
<author href="http://moodle.com" email="juan@moodle.com">Juan Leyva</author>
<content src="index.html"/>
<access origin="*"/>
<allow-navigation href="cdvfile:*"/>
<allow-navigation href="content:*"/>
<allow-navigation href="data:*"/>
<allow-navigation href="*"/>
<allow-intent href="*"/>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="SplashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="3000"/>
<preference name="KeyboardDisplayRequiresUserAction" value="false"/>
<preference name="android-minSdkVersion" value="14" />
<preference name="android-targetSdkVersion" value="19" />
<preference name="AppendUserAgent" value="MoodleMobile" />
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/>
</feature>
<platform name="android">
<splash src="resources/android/splash/drawable-land-ldpi-screen.png" density="land-ldpi"/>
<splash src="resources/android/splash/drawable-land-mdpi-screen.png" density="land-mdpi"/>
<splash src="resources/android/splash/drawable-land-hdpi-screen.png" density="land-hdpi"/>
<splash src="resources/android/splash/drawable-land-xhdpi-screen.png" density="land-xhdpi"/>
<splash src="resources/android/splash/drawable-land-xxhdpi-screen.png" density="land-xxhdpi"/>
<splash src="resources/android/splash/drawable-land-xxxhdpi-screen.png" density="land-xxxhdpi"/>
<splash src="resources/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi"/>
<splash src="resources/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi"/>
<splash src="resources/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi"/>
<splash src="resources/android/splash/drawable-port-xhdpi-screen.png" density="port-xhdpi"/>
<splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" density="port-xxhdpi"/>
<splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>
<icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
<icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
<icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
<icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/>
<icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/>
<icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
</platform>
<platform name="ios">
<splash src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" height="1136"/>
<splash src="resources/ios/splash/Default-667h.png" width="750" height="1334"/>
<splash src="resources/ios/splash/Default-736h.png" width="1242" height="2208"/>
<splash src="resources/ios/splash/Default-Landscape-736h.png" width="2208" height="1242"/>
<splash src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
<splash src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" height="768"/>
<splash src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
<splash src="resources/ios/splash/Default-Portrait~ipad.png" width="768" height="1024"/>
<splash src="resources/ios/splash/Default@2x~iphone.png" width="640" height="960"/>
<splash src="resources/ios/splash/Default~iphone.png" width="320" height="480"/>
<icon src="resources/ios/icon/icon.png" width="57" height="57"/>
<icon src="resources/ios/icon/icon@2x.png" width="114" height="114"/>
<icon src="resources/ios/icon/icon-40.png" width="40" height="40"/>
<icon src="resources/ios/icon/icon-40@2x.png" width="80" height="80"/>
<icon src="resources/ios/icon/icon-40@3x.png" width="120" height="120"/>
<icon src="resources/ios/icon/icon-50.png" width="50" height="50"/>
<icon src="resources/ios/icon/icon-50@2x.png" width="100" height="100"/>
<icon src="resources/ios/icon/icon-60.png" width="60" height="60"/>
<icon src="resources/ios/icon/icon-60@2x.png" width="120" height="120"/>
<icon src="resources/ios/icon/icon-60@3x.png" width="180" height="180"/>
<icon src="resources/ios/icon/icon-72.png" width="72" height="72"/>
<icon src="resources/ios/icon/icon-72@2x.png" width="144" height="144"/>
<icon src="resources/ios/icon/icon-76.png" width="76" height="76"/>
<icon src="resources/ios/icon/icon-76@2x.png" width="152" height="152"/>
<icon src="resources/ios/icon/icon-83.5@2x.png" width="167" height="167"/>
<icon src="resources/ios/icon/icon-small.png" width="29" height="29"/>
<icon src="resources/ios/icon/icon-small@2x.png" width="58" height="58"/>
<icon src="resources/ios/icon/icon-small@3x.png" width="87" height="87"/>
</platform>
<icon src="resources/android/icon/drawable-xhdpi-icon.png"/>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="com.moodle.moodlemobile" version="3.3.1">
<name>Moodle Mobile</name>
<description>
Moodle Mobile official app
</description>
<author href="http://moodle.com" email="mobile@moodle.com">
Moodle Mobile team
</author>
<content src="index.html"/>
<access origin="*"/>
<access origin="tel:*" launch-external="yes"/>
<access origin="mailto:*" launch-external="yes"/>
<access origin="geo:*" launch-external="yes"/>
<allow-navigation href="cdvfile:*"/>
<allow-navigation href="content:*"/>
<allow-navigation href="data:*"/>
<allow-navigation href="*"/>
<allow-intent href="*"/>
<preference name="orientation" value="default"/>
<preference name="target-device" value="universal"/>
<preference name="fullscreen" value="false"/>
<preference name="webviewbounce" value="false"/>
<preference name="AppendUserAgent" value="MoodleMobile"/>
<preference name="android-minSdkVersion" value="14"/>
<preference name="android-targetSdkVersion" value="19"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="KeyboardDisplayRequiresUserAction" value="false"/>
<preference name="AndroidPersistentFileLocation" value="Compatibility"/>
<preference name="iosPersistentFileLocation" value="Compatibility"/>
<preference name="SplashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="3000"/>
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/>
</feature>
<platform name="android">
<splash src="resources/android/splash/drawable-land-ldpi-screen.png" qualifier="land-ldpi"/>
<splash src="resources/android/splash/drawable-land-mdpi-screen.png" qualifier="land-mdpi"/>
<splash src="resources/android/splash/drawable-land-hdpi-screen.png" qualifier="land-hdpi"/>
<splash src="resources/android/splash/drawable-land-xhdpi-screen.png" qualifier="land-xhdpi"/>
<splash src="resources/android/splash/drawable-land-xxhdpi-screen.png" qualifier="land-xxhdpi"/>
<splash src="resources/android/splash/drawable-land-xxxhdpi-screen.png" qualifier="land-xxxhdpi"/>
<splash src="resources/android/splash/drawable-port-ldpi-screen.png" qualifier="port-ldpi"/>
<splash src="resources/android/splash/drawable-port-mdpi-screen.png" qualifier="port-mdpi"/>
<splash src="resources/android/splash/drawable-port-hdpi-screen.png" qualifier="port-hdpi"/>
<splash src="resources/android/splash/drawable-port-xhdpi-screen.png" qualifier="port-xhdpi"/>
<splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" qualifier="port-xxhdpi"/>
<splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" qualifier="port-xxxhdpi"/>
<icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
<icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
<icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
<icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/>
<icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/>
<icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
</platform>
<platform name="ios">
<splash src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" height="1136"/>
<splash src="resources/ios/splash/Default-667h.png" width="750" height="1334"/>
<splash src="resources/ios/splash/Default-736h.png" width="1242" height="2208"/>
<splash src="resources/ios/splash/Default-Landscape-736h.png" width="2208" height="1242"/>
<splash src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
<splash src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" height="768"/>
<splash src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
<splash src="resources/ios/splash/Default-Portrait~ipad.png" width="768" height="1024"/>
<splash src="resources/ios/splash/Default@2x~iphone.png" width="640" height="960"/>
<splash src="resources/ios/splash/Default~iphone.png" width="320" height="480"/>
<icon src="resources/ios/icon/icon.png" width="57" height="57"/>
<icon src="resources/ios/icon/icon@2x.png" width="114" height="114"/>
<icon src="resources/ios/icon/icon-40.png" width="40" height="40"/>
<icon src="resources/ios/icon/icon-40@2x.png" width="80" height="80"/>
<icon src="resources/ios/icon/icon-40@3x.png" width="120" height="120"/>
<icon src="resources/ios/icon/icon-50.png" width="50" height="50"/>
<icon src="resources/ios/icon/icon-50@2x.png" width="100" height="100"/>
<icon src="resources/ios/icon/icon-60.png" width="60" height="60"/>
<icon src="resources/ios/icon/icon-60@2x.png" width="120" height="120"/>
<icon src="resources/ios/icon/icon-60@3x.png" width="180" height="180"/>
<icon src="resources/ios/icon/icon-72.png" width="72" height="72"/>
<icon src="resources/ios/icon/icon-72@2x.png" width="144" height="144"/>
<icon src="resources/ios/icon/icon-76.png" width="76" height="76"/>
<icon src="resources/ios/icon/icon-76@2x.png" width="152" height="152"/>
<icon src="resources/ios/icon/icon-83.5@2x.png" width="167" height="167"/>
<icon src="resources/ios/icon/icon-small.png" width="29" height="29"/>
<icon src="resources/ios/icon/icon-small@2x.png" width="58" height="58"/>
<icon src="resources/ios/icon/icon-small@3x.png" width="87" height="87"/>
</platform>
<icon src="resources/ios/icon/icon-small@3x.png"/>
</widget>
62 changes: 54 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "mm2",
"version": "1.0.0",
"description": "Moodle Mobile 2: The official mobile app for Moodle.",
"name": "com.moodle.moodlemobile",
"version": "3.3.0",
"description": "The official app for Moodle.",
"author": {
"name": "Moodle Pty Ltd.",
"email": "mobile@moodle.com"
},
"repository": {
"type": "git",
"url": "https://github.com/moodlehq/moodlemobile2.git"
Expand All @@ -14,22 +18,25 @@
}
],
"dependencies": {
"electron-windows-notifications": "^1.1.13",
"electron-builder-squirrel-windows": "^19.3.0"
},
"devDependencies": {
"appium": "^1.6.0",
"bower": "^1.3.3",
"electron-rebuild": "^1.5.11",
"gulp": "^3.9.1",
"gulp-clean-css": "^3.0.3",
"gulp-concat": "^2.6.0",
"gulp-rename": "^1.2.0",
"gulp-sass": "^2.3.2",
"gulp-clean": "^0.3.2",
"gulp-clean-css": "^3.0.3",
"gulp-clip-empty-files": "^0.1.1",
"gulp-concat": "^2.6.0",
"gulp-concat-util": "^0.5.2",
"gulp-file": "^0.3.0",
"gulp-insert": "^0.5.0",
"gulp-ng-annotate": "^2.0.0",
"gulp-remove-empty-lines": "0.0.8",
"gulp-rename": "^1.2.0",
"gulp-sass": "^2.3.2",
"gulp-slash": "^1.1.3",
"gulp-strip-comments": "^2.4.3",
"gulp-tap": "^0.1.3",
Expand Down Expand Up @@ -121,6 +128,45 @@
"android": "ionic run android",
"serve.e2e": "ionic serve -b -a",
"serve.dev": "ionic serve",
"e2e": "protractor e2e/build/protractor.conf.js"
"e2e": "protractor e2e/build/protractor.conf.js",
"desktop.pack": "build --dir",
"desktop.dist": "build",
"windows.store": "electron-windows-store --input-directory .\\desktop\\dist\\win-unpacked --output-directory .\\desktop\\store --flatten true -a .\\resources\\desktop -m .\\AppXManifest.xml --package-version 0.0.0.0 --package-name MoodleDesktop"
},
"main": "www/electron.js",
"build": {
"appId": "com.moodle.moodlemobile",
"productName": "MoodleDesktop",
"files": [
"!desktop",
"!**/e2e",
"!hooks",
"!platforms",
"!plugins",
"!resources",
"!**/*.scss"
],
"directories": {
"output": "desktop/dist"
},
"protocols": [
{
"name": "Moodle Mobile URL",
"schemes": [
"moodlemobile"
],
"role": "Viewer"
}
],
"compression": "maximum",
"electronVersion": "1.6.11",
"mac": {
"category": "public.app-category.education",
"icon": "resources/desktop/icon.icns"
},
"win": {
"target": "appx",
"icon": "resources/desktop/icon.ico"
}
}
}
Binary file modified resources/android/icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/icon/drawable-hdpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/icon/drawable-ldpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/icon/drawable-mdpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/icon/drawable-xhdpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/icon/drawable-xxhdpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/icon/drawable-xxxhdpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/desktop/Square150x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/desktop/Square44x44Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/desktop/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/desktop/Wide310x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/desktop/icon.icns
Binary file not shown.
Binary file added resources/desktop/icon.ico
Binary file not shown.
Binary file modified resources/ios/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-40@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-40@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-50@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-60@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-60@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-72@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-76@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-83.5@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/icon/icon-small.png
Binary file modified resources/ios/icon/icon-small@2x.png
Binary file modified resources/ios/icon/icon-small@3x.png
Binary file modified resources/ios/icon/icon.png
Binary file modified resources/ios/icon/icon@2x.png
42 changes: 33 additions & 9 deletions scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,46 @@ $mm-color: $orange;
$mm-color-light: lighten($mm-color, 10%);
$mm-color-dark: darken($mm-color, 10%);

$mm-color-init-screen: #ff5c00;
$mm-color-init-screen-alt: #ff7600;
$mm-init-screen-spinner-color: $white;
$mm-init-screen-logo-width: 60%;
$mm-init-screen-logo-max-width: 300px;

$mm-fixed-url: false;

$mm-buttons-color: $positive;

// Change Ionic default elements colors.
$base-color: $black !default;
$base-background-color: $gray-light !default;

$item-default-text: $black;
$sheet-options-text-color: $positive;
$sheet-options-text-color: $mm-buttons-color;

$item-default-bg: $white;
$item-divider-bg: $gray-lighter;
$item-disabled-color: $gray-dark !default;

$button-light-border: $gray;

// Header.
$bar-content-bg: $mm-color !default;
$bar-content-border: transparent !default;
$bar-content-text: $white !default;

$item-default-bg: $white;
$item-divider-bg: $gray-lighter;
$item-disabled-color: $gray-dark !default;
$bar-side-menu-height: 80px !default;
$bar-side-menu-color: $bar-content-bg !default;
$bar-side-menu-border-color: $bar-content-border !default;
$bar-side-menu-text-color: $bar-content-text !default;

$button-light-border: $gray;
$bar-side-menu-item-border-color: $button-light-border;
$bar-side-menu-item-divider-color: $item-divider-bg;
$bar-side-menu-item-background-color: $item-default-bg;
$bar-side-menu-item-text-color: $item-default-text;
$bar-side-menu-item-icon-color: $gray-darker;

$toggle-on-default-bg: $blue;
$toggle-on-default-bg: $mm-buttons-color;

$tabs-off-opacity: 0.6;
$tabs-striped-off-opacity: $tabs-off-opacity;
Expand All @@ -82,6 +101,11 @@ $button-default-border: $mm-buttons-color !default;
$button-default-active-bg: $mm-buttons-color !default;
$button-default-active-border: $mm-buttons-color !default;

$button-positive-bg: $mm-buttons-color !default;
$button-positive-border: darken($mm-buttons-color, 10%) !default;
$button-positive-active-bg: darken($mm-buttons-color, 10%) !default;
$button-positive-active-border: darken($mm-buttons-color, 10%) !default;

// The path to the font icons.
$ionicons-font-path: "../lib/ionic/release/fonts" !default;

Expand All @@ -92,7 +116,7 @@ $ionicons-font-path: "../lib/ionic/release/fonts" !default;
color: $gray-darker;

&.positive {
color: $positive;
color: $mm-buttons-color;
}
&.assertive {
color: $assertive;
Expand All @@ -112,7 +136,7 @@ $ionicons-font-path: "../lib/ionic/release/fonts" !default;
&.activated,
&.active .icon,
&.activated .icon {
color: $positive;
color: $mm-buttons-color;

&.assertive {
color: $assertive;
Expand Down Expand Up @@ -144,7 +168,7 @@ $ionicons-font-path: "../lib/ionic/release/fonts" !default;
color: $assertive;
}

// Setting the default button to button-outline positive.
// Setting the default button to button-outline $mm-buttons-color.
.button {
&.button-light,
&.button-stable,
Expand Down
Loading