appscms-tools-theme 1.1.3 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/_data/feature/en/split-pdf.json +77 -71
  3. data/_data/files/en/3gp.json +1 -0
  4. data/_data/files/en/aac.json +1 -0
  5. data/_data/files/en/acc.json +1 -0
  6. data/_data/files/en/aff.json +1 -0
  7. data/_data/files/en/ai.json +1 -0
  8. data/_data/files/en/aiff.json +1 -0
  9. data/_data/files/en/avi.json +1 -0
  10. data/_data/files/en/bmp.json +1 -0
  11. data/_data/files/en/cr2.json +1 -0
  12. data/_data/files/en/dvd.json +1 -0
  13. data/_data/files/en/flac.json +1 -0
  14. data/_data/files/en/flv.json +1 -0
  15. data/_data/files/en/gif.json +1 -0
  16. data/_data/files/en/heic.json +1 -0
  17. data/_data/files/en/html.json +1 -0
  18. data/_data/files/en/jfif.json +1 -0
  19. data/_data/files/en/jpeg.json +1 -0
  20. data/_data/files/en/jpg.json +1 -0
  21. data/_data/files/en/m4a.json +1 -0
  22. data/_data/files/en/mkv.json +1 -0
  23. data/_data/files/en/mov.json +1 -0
  24. data/_data/files/en/mp3.json +1 -0
  25. data/_data/files/en/mp4.json +1 -0
  26. data/_data/files/en/mpeg.json +1 -0
  27. data/_data/files/en/nef.json +1 -0
  28. data/_data/files/en/ogg.json +1 -0
  29. data/_data/files/en/opus.json +1 -0
  30. data/_data/files/en/pdf.json +1 -0
  31. data/_data/files/en/png.json +1 -0
  32. data/_data/files/en/psd.json +1 -0
  33. data/_data/files/en/svg.json +1 -0
  34. data/_data/files/en/tiff.json +1 -0
  35. data/_data/files/en/vmv.json +1 -0
  36. data/_data/files/en/wav.json +1 -0
  37. data/_data/files/en/webm.json +1 -0
  38. data/_data/files/en/webp.json +1 -0
  39. data/_data/files/en/wma.json +1 -0
  40. data/_includes/fileformat/comparisonfiles.html +3 -10
  41. data/_includes/fileformat/fileformatdetail.html +3 -8
  42. data/_includes/head/index.html +4 -0
  43. data/_layouts/feature.html +9 -13
  44. data/_layouts/home.html +8 -11
  45. data/assets/css/tools.css +2 -2
  46. data/assets/fileimg/0RX6D8V.jpeg +0 -0
  47. data/assets/fileimg/11To9CR.jpeg +0 -0
  48. data/assets/fileimg/16q77H1.jpeg +0 -0
  49. data/assets/fileimg/1o2rNBD.jpeg +0 -0
  50. data/assets/fileimg/2DVHHaP.jpeg +0 -0
  51. data/assets/fileimg/38SErjW.jpeg +0 -0
  52. data/assets/fileimg/3JbciOH.jpeg +0 -0
  53. data/assets/fileimg/51PJjGr.jpeg +0 -0
  54. data/assets/fileimg/5938cLE.jpeg +0 -0
  55. data/assets/fileimg/5hGiNf7.jpeg +0 -0
  56. data/assets/fileimg/69oMRM0.jpeg +0 -0
  57. data/assets/fileimg/6WTDOAw.jpeg +0 -0
  58. data/assets/fileimg/6hQNdGk.jpeg +0 -0
  59. data/assets/fileimg/6uyiajm.jpeg +0 -0
  60. data/assets/fileimg/7Z9sNdy.jpeg +0 -0
  61. data/assets/fileimg/7eQehmc.jpeg +0 -0
  62. data/assets/fileimg/8A6rYqw.jpeg +0 -0
  63. data/assets/fileimg/8aN9yEj.jpeg +0 -0
  64. data/assets/fileimg/99jo0FJ.jpeg +0 -0
  65. data/assets/fileimg/A2QFJgs.jpeg +0 -0
  66. data/assets/fileimg/AuNqAKT.jpeg +0 -0
  67. data/assets/fileimg/BV8ML15.jpeg +0 -0
  68. data/assets/fileimg/Cjoa7OB.jpeg +0 -0
  69. data/assets/fileimg/Dh0nFk6.jpeg +0 -0
  70. data/assets/fileimg/EuFgmVh.jpeg +0 -0
  71. data/assets/fileimg/F87GDJM.jpeg +0 -0
  72. data/assets/fileimg/FAo0QEL.jpeg +0 -0
  73. data/assets/fileimg/FSHZ7pW.jpeg +0 -0
  74. data/assets/fileimg/FYEygcW.jpeg +0 -0
  75. data/assets/fileimg/FdqTl1x.jpeg +0 -0
  76. data/assets/fileimg/H7CZmss.jpeg +0 -0
  77. data/assets/fileimg/HAhjqEA.jpeg +0 -0
  78. data/assets/fileimg/HmizpGb.jpeg +0 -0
  79. data/assets/fileimg/IKdU9NN.jpeg +0 -0
  80. data/assets/fileimg/JEuwwVE.jpeg +0 -0
  81. data/assets/fileimg/JeFS57j.jpeg +0 -0
  82. data/assets/fileimg/KXTzTK7.jpeg +0 -0
  83. data/assets/fileimg/MX9qrvZ.jpeg +0 -0
  84. data/assets/fileimg/Mny97V6.jpeg +0 -0
  85. data/assets/fileimg/Mt9PAUF.jpeg +0 -0
  86. data/assets/fileimg/NY9GTXm.jpeg +0 -0
  87. data/assets/fileimg/O1HqazZ.jpeg +0 -0
  88. data/assets/fileimg/P6WGAMN.jpeg +0 -0
  89. data/assets/fileimg/PePZ5cb.jpeg +0 -0
  90. data/assets/fileimg/PtakFU2.jpeg +0 -0
  91. data/assets/fileimg/QdcouPN.jpeg +0 -0
  92. data/assets/fileimg/RUVWLwB.jpeg +0 -0
  93. data/assets/fileimg/SJ29L8A.jpeg +0 -0
  94. data/assets/fileimg/TmHdEAq.jpeg +0 -0
  95. data/assets/fileimg/TnwKQd9.jpeg +0 -0
  96. data/assets/fileimg/U6hLUgu.jpeg +0 -0
  97. data/assets/fileimg/V2G1SGL.jpeg +0 -0
  98. data/assets/fileimg/WBNj13N.jpeg +0 -0
  99. data/assets/fileimg/WofJU7C.jpeg +0 -0
  100. data/assets/fileimg/XLdMM90.jpeg +0 -0
  101. data/assets/fileimg/XYvKzO9.jpeg +0 -0
  102. data/assets/fileimg/Xa1wjEf.jpeg +0 -0
  103. data/assets/fileimg/YaqCA2d.jpeg +0 -0
  104. data/assets/fileimg/YmBdG16.jpeg +0 -0
  105. data/assets/fileimg/ZTI2NTv.jpeg +0 -0
  106. data/assets/fileimg/acdsee.png +0 -0
  107. data/assets/fileimg/b18tt3b.jpeg +0 -0
  108. data/assets/fileimg/bC8ZzSs.jpeg +0 -0
  109. data/assets/fileimg/c5Zl0O1.jpeg +0 -0
  110. data/assets/fileimg/cPO8bqH.jpeg +0 -0
  111. data/assets/fileimg/cfwD39J.jpeg +0 -0
  112. data/assets/fileimg/d5byEov.jpeg +0 -0
  113. data/assets/fileimg/diIDQ4M.jpeg +0 -0
  114. data/assets/fileimg/e9cgmZo.jpeg +0 -0
  115. data/assets/fileimg/fClLkgM.jpeg +0 -0
  116. data/assets/fileimg/ffv3iNy.jpeg +0 -0
  117. data/assets/fileimg/hJWCII5.jpeg +0 -0
  118. data/assets/fileimg/hnkzD4T.jpeg +0 -0
  119. data/assets/fileimg/hodO9zz.jpeg +0 -0
  120. data/assets/fileimg/irCSU4s.jpeg +0 -0
  121. data/assets/fileimg/jcTagMw.jpeg +0 -0
  122. data/assets/fileimg/jsU9KjR.jpeg +0 -0
  123. data/assets/fileimg/kXyPDCs.jpeg +0 -0
  124. data/assets/fileimg/lWFl5mc.jpeg +0 -0
  125. data/assets/fileimg/mF1gtxb.jpeg +0 -0
  126. data/assets/fileimg/mSrHgSp.jpeg +0 -0
  127. data/assets/fileimg/nrsG7Ys.jpeg +0 -0
  128. data/assets/fileimg/ovQYI78.jpeg +0 -0
  129. data/assets/fileimg/p5rWIzT.jpeg +0 -0
  130. data/assets/fileimg/p64BUbi.jpeg +0 -0
  131. data/assets/fileimg/pgXaxjb.jpeg +0 -0
  132. data/assets/fileimg/pqcWQ2F.jpeg +0 -0
  133. data/assets/fileimg/qwnEy06.jpeg +0 -0
  134. data/assets/fileimg/rElyIoV.jpeg +0 -0
  135. data/assets/fileimg/rawD7q8.jpeg +0 -0
  136. data/assets/fileimg/rrCOBeO.jpeg +0 -0
  137. data/assets/fileimg/t2WljZe.jpeg +0 -0
  138. data/assets/fileimg/uoX9gqI.jpeg +0 -0
  139. data/assets/fileimg/upbts7y.jpeg +0 -0
  140. data/assets/fileimg/vyEg9wb.jpeg +0 -0
  141. data/assets/fileimg/wAHKc6t.jpeg +0 -0
  142. data/assets/fileimg/wJy7aoh.jpeg +0 -0
  143. data/assets/fileimg/wK1B8lS.jpeg +0 -0
  144. data/assets/fileimg/wcqHWtb.jpeg +0 -0
  145. data/assets/fileimg/xbfyrdU.jpeg +0 -0
  146. data/assets/fileimg/xeDZX8x.jpeg +0 -0
  147. data/assets/js/googledriveinput.js +155 -0
  148. data/assets/js/multiselect.js +156 -0
  149. metadata +142 -4
  150. data/assets/js/files/en/jpg.json +0 -153
  151. data/assets/js/files/en/png.json +0 -61
data/assets/css/tools.css CHANGED
@@ -1517,8 +1517,8 @@ ul li {
1517
1517
  border: none !important;
1518
1518
  }
1519
1519
  .softwares-section img {
1520
- height: 37px;
1521
- width: 37px;
1520
+ height: 32px;
1521
+ min-width: 32px;
1522
1522
  }
1523
1523
  .software-name {
1524
1524
  color: #1565c0 !important;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,155 @@
1
+ ---
2
+ ---
3
+
4
+ const addScripts=()=>{
5
+ const scripts=document.getElementsByTagName('script')
6
+ const check= Array.from(scripts).find(item=>item.src==='https://www.dropbox.com/static/api/2/dropins.js')
7
+ if(!check){
8
+ const dropboxscript = document.createElement('script')
9
+ dropboxscript.src = 'https://www.dropbox.com/static/api/2/dropins.js'
10
+ dropboxscript.dataset.appKey = '{{site.dropboxapikey}}'
11
+ dropboxscript.id='dropboxjs'
12
+ document.head.append(dropboxscript)
13
+ }
14
+ const checkgooglescript= Array.from(scripts).find(item=>item.src==='https://apis.google.com/js/api.js')
15
+ if(!checkgooglescript){
16
+ const googlescript = document.createElement('script')
17
+ googlescript.src = 'https://apis.google.com/js/api.js'
18
+ document.head.append(googlescript)
19
+ }
20
+ }
21
+ const developerKey = '{{site.developerKey}}'
22
+ const clientId ='{{site.clientId}}'
23
+ const appId = '{{site.appId}}'
24
+ const scope = [
25
+ 'https://www.googleapis.com/auth/drive.file',
26
+ 'https://www.googleapis.com/auth/drive.appdata',
27
+ ]
28
+ let pickerApiLoaded = false
29
+ let oauthToken
30
+ const loadPicker = (mimeTypes) => {
31
+ gapi.load('auth', { callback: onAuthApiLoad })
32
+ gapi.load('picker', { callback: onPickerApiLoad })
33
+ }
34
+ const onAuthApiLoad = () => {
35
+ window.gapi.auth.authorize(
36
+ {
37
+ client_id: clientId,
38
+ scope: scope,
39
+ immediate: false,
40
+ },
41
+ handleAuthResult
42
+ )
43
+ }
44
+ let onPickerApiLoad = () => {
45
+ pickerApiLoaded = true
46
+ createPicker()
47
+ }
48
+ const handleAuthResult = (authResult) => {
49
+ if (authResult && !authResult.error) {
50
+ oauthToken = authResult.access_token
51
+ createPicker()
52
+ }
53
+ }
54
+ const createPicker = () => {
55
+ const mimeTypes='application/zip,application/x-7z-compressed,application/vnd.rar'
56
+ if (pickerApiLoaded && oauthToken) {
57
+ const view = new google.picker.View(google.picker.ViewId.DOCS)
58
+ view.setMimeTypes(mimeTypes)
59
+ const picker = new google.picker.PickerBuilder()
60
+ .enableFeature(google.picker.Feature.NAV_HIDDEN)
61
+ .enableFeature(google.picker.Feature.MULTISELECT_ENABLED)
62
+ .setAppId(appId)
63
+ .setOAuthToken(oauthToken)
64
+ .addView(view)
65
+ .addView(new google.picker.DocsUploadView())
66
+ .setDeveloperKey(developerKey)
67
+ .setCallback(pickerCallback)
68
+ .build()
69
+ picker.setVisible(true)
70
+ }
71
+ }
72
+ const pickerCallback = async (data) => {
73
+ if (data.action == google.picker.Action.PICKED) {
74
+ showLoader()
75
+ const res = await fetch(
76
+ `https://www.googleapis.com/drive/v3/files/${data.docs[0].id}?alt=media`,
77
+ {
78
+ headers: {
79
+ Authorization: `Bearer ${oauthToken}`,
80
+ },
81
+ }
82
+ ).then((res) => res.blob())
83
+ let metadata = {
84
+ type: data.docs[0].mimeType,
85
+ }
86
+ let file = new File([res], data.docs[0].name, metadata)
87
+ closeLoader()
88
+ getFile(file)
89
+ }
90
+ }
91
+ function chooseFromDropbox(filemimes) {
92
+ Dropbox.choose({
93
+ success: async (files) => {
94
+ if (files.length < 0) {
95
+ return
96
+ }
97
+ var file = files[0]
98
+ const url = new URL(file.link)
99
+ showLoader()
100
+ const response = await fetch(url).then((res) => res.blob())
101
+ let metadata = {
102
+ type: response.type,
103
+ }
104
+ let newFile = new File([response], file.name, metadata)
105
+ closeLoader()
106
+ getDropBoxFile(newFile)
107
+ },
108
+ cancel: function () {},
109
+ linkType: 'direct',
110
+ multiselect: false,
111
+ extensions: [...filemimes],
112
+ folderselect: false,
113
+ })
114
+ }
115
+
116
+ const fileupload=(file)=>{
117
+ gapi.load('auth', {'callback': onAuthLoad});
118
+ }
119
+ const onAuthLoad=()=> {
120
+ window.gapi.auth.authorize(
121
+ {
122
+ 'client_id': clientId,
123
+ 'scope': scope,
124
+ 'immediate': false
125
+ },
126
+ handleAuth);
127
+ }
128
+ const handleAuth=(authResult)=> {
129
+ if (authResult && !authResult.error) {
130
+ showuploadloading()
131
+ var formData = new FormData();
132
+ const fileToUpload = file
133
+ var metadata = {
134
+ name: fileToUpload.name,
135
+ mimeType: fileToUpload.type
136
+ };
137
+ formData.append( "metadata", new Blob( [JSON.stringify( metadata )], {type: "application/json"} ));
138
+ formData.append( "file", fileToUpload );
139
+ fetch( "https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart", {
140
+ method: "POST",
141
+ headers: new Headers({ "Authorization": "Bearer " + gapi.auth.getToken().access_token }),
142
+ body: formData
143
+ }).then( function( response ){
144
+ stopuploadloading()
145
+ return response.json();
146
+
147
+ }).then( function( value ){
148
+ stopuploadloading()
149
+ showmessage()
150
+ });
151
+ }
152
+ }
153
+
154
+
155
+
@@ -0,0 +1,156 @@
1
+ ---
2
+ ---
3
+
4
+ const addScripts=()=>{
5
+ const scripts=document.getElementsByTagName('script')
6
+ const check= Array.from(scripts).find(item=>item.src==='https://www.dropbox.com/static/api/2/dropins.js')
7
+ if(!check){
8
+ const dropboxscript = document.createElement('script')
9
+ dropboxscript.src = 'https://www.dropbox.com/static/api/2/dropins.js'
10
+ dropboxscript.dataset.appKey = '{{site.dropboxapikey}}'
11
+ dropboxscript.id='dropboxjs'
12
+ document.head.append(dropboxscript)
13
+ }
14
+ const checkgooglescript= Array.from(scripts).find(item=>item.src==='https://apis.google.com/js/api.js')
15
+ if(!checkgooglescript){
16
+ const googlescript = document.createElement('script')
17
+ googlescript.src = 'https://apis.google.com/js/api.js'
18
+ document.head.append(googlescript)
19
+ }
20
+ }
21
+ const developerKey = '{{site.developerKey}}'
22
+ const clientId ='{{site.clientId}}'
23
+ const appId = '{{site.appId}}'
24
+ const scope = [
25
+ 'https://www.googleapis.com/auth/drive.file',
26
+ 'https://www.googleapis.com/auth/drive.appdata',
27
+ ]
28
+ let pickerApiLoaded = false
29
+ let oauthToken
30
+ const loadPicker = () => {
31
+ gapi.load('auth', { callback: onAuthApiLoad })
32
+ gapi.load('picker', { callback: onPickerApiLoad })
33
+ }
34
+ const onAuthApiLoad = () => {
35
+ window.gapi.auth.authorize(
36
+ {
37
+ client_id: clientId,
38
+ scope: scope,
39
+ immediate: false,
40
+ },
41
+ handleAuthResult
42
+ )
43
+ }
44
+ let onPickerApiLoad = () => {
45
+ pickerApiLoaded = true
46
+ createPicker()
47
+ }
48
+ const handleAuthResult = (authResult) => {
49
+ if (authResult && !authResult.error) {
50
+ oauthToken = authResult.access_token
51
+ createPicker()
52
+ }
53
+ }
54
+ const createPicker = () => {
55
+ if (pickerApiLoaded && oauthToken) {
56
+ const view = new google.picker.View(google.picker.ViewId.DOCS)
57
+ view.setMimeTypes(mimeTypes)
58
+ const picker = new google.picker.PickerBuilder()
59
+ .enableFeature(google.picker.Feature.NAV_HIDDEN)
60
+ .enableFeature(google.picker.Feature.MULTISELECT_ENABLED)
61
+ .setAppId(appId)
62
+ .setOAuthToken(oauthToken)
63
+ .addView(view)
64
+ .addView(new google.picker.DocsUploadView())
65
+ .setDeveloperKey(developerKey)
66
+ .setCallback(pickerCallback)
67
+ .build()
68
+ picker.setVisible(true)
69
+ }
70
+ }
71
+ const pickerCallback = async (data) => {
72
+ if (data.action == google.picker.Action.PICKED) {
73
+ showLoader()
74
+ var filesArray=data.docs.map(async(i)=>{
75
+ const res= await fetch(`https://www.googleapis.com/drive/v3/files/${i.id}?alt=media`,{
76
+ headers: {
77
+ 'Authorization': `Bearer ${oauthToken}` }
78
+ }).then(res=>res.blob())
79
+ let metadata = {
80
+ type: i.mimeType
81
+ }
82
+ const file = new File([res], i.name, metadata);
83
+ return file
84
+ })
85
+ closeLoader()
86
+ getFile(filesArray)
87
+ }
88
+ }
89
+ function chooseFromDropbox() {
90
+ Dropbox.choose({
91
+ success: async (files) => {
92
+ if (files.length < 0) {
93
+ return
94
+ }
95
+ var dropboxArray=files.map(async(file)=>{
96
+ showLoader()
97
+ const url = new URL(file.link)
98
+ const response = await fetch(url).then((res) => res.blob())
99
+ let metadata = {
100
+ type: response.type,
101
+ }
102
+ let newFile = new File([response], file.name, metadata)
103
+ return newFile
104
+ })
105
+
106
+ closeLoader()
107
+ getDropBoxFile(dropboxArray)
108
+ },
109
+ cancel: function () {},
110
+ linkType: 'direct',
111
+ multiselect: true,
112
+ extensions: [...filemimes],
113
+ folderselect: false,
114
+ })
115
+ }
116
+
117
+ const fileupload=(file)=>{
118
+ gapi.load('auth', {'callback': onAuthLoad});
119
+ }
120
+ const onAuthLoad=()=> {
121
+ window.gapi.auth.authorize(
122
+ {
123
+ 'client_id': clientId,
124
+ 'scope': scope,
125
+ 'immediate': false
126
+ },
127
+ handleAuth);
128
+ }
129
+ const handleAuth=(authResult)=> {
130
+ if (authResult && !authResult.error) {
131
+ showuploadloading()
132
+ var formData = new FormData();
133
+ const fileToUpload = file
134
+ var metadata = {
135
+ name: fileToUpload.name,
136
+ mimeType: fileToUpload.type
137
+ };
138
+ formData.append( "metadata", new Blob( [JSON.stringify( metadata )], {type: "application/json"} ));
139
+ formData.append( "file", fileToUpload );
140
+ fetch( "https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart", {
141
+ method: "POST",
142
+ headers: new Headers({ "Authorization": "Bearer " + gapi.auth.getToken().access_token }),
143
+ body: formData
144
+ }).then( function( response ){
145
+ stopuploadloading()
146
+ return response.json();
147
+
148
+ }).then( function( value ){
149
+ stopuploadloading()
150
+ showmessage()
151
+ });
152
+ }
153
+ }
154
+
155
+
156
+