appscms-tools-theme 1.1.5 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4e8235d8d612010b549fd1c186f8a3a383e8d6ad4430cc249083a27255ab545
4
- data.tar.gz: 2c995b9e852949c9fa6306b26bd31f73bd81540ed073f24696c0a10f043214db
3
+ metadata.gz: 32ce87db21ce0a538d73eadadfbe5afff6ac57f8df267331ca6692c9cf110468
4
+ data.tar.gz: 301109892ed1249e04905accc69430106b9914ff2d430316c6c456cc391730f9
5
5
  SHA512:
6
- metadata.gz: 2f11f0b021478dfd2f33cc95ae090ddd90ec9f597cc62b1bc9ebd7f3f33bba70f1bd521a725961fb4bc033842402249d020b3282021a1ba649341d9133b9a667
7
- data.tar.gz: 8081cfeed4f99bb471ee4400cb6542ceb00d119b3d7045075ef00d6eab13da59092a76ea3364a5ab4238dfe7ce443494700f1e78ec1c3b1a203f5ecd878fbfe2
6
+ metadata.gz: a8cf43b7e9438b3ace87cc55734c205d79aa498ff2c8c74ff8ecbe45434a98719824cc5945b165bebc747e98b284d1abaf3c7f01c60ffc4c334ffcc114190d0d
7
+ data.tar.gz: dc95c6803300fe1e2b865a6b650369682b1657e91835722969fe574572635aff5dbaf9a4beeb9ce802b517540c51313ffe2fd06ad9a575e26dc73aca0e0a7301
@@ -34,9 +34,10 @@
34
34
  <meta data-rh="true" name="twitter:title" content="{{title}}">
35
35
  <meta data-rh="true" name="twitter:description" content="{{description}}">
36
36
  <meta data-rh="true" name="twitter:image:src" content="{{site.url}}{{favicon}}">
37
- {%- if page.noindex -%}
37
+ {%- if page.noindex -%}
38
38
  <meta name="robots" content="noindex">
39
39
  {%- endif -%}
40
+
40
41
  {%- if site.pwa -%}
41
42
  <link rel="manifest" href="/assets/js/manifest.json">
42
43
  {%- endif -%}
@@ -0,0 +1,156 @@
1
+ ---
2
+ ---
3
+
4
+ var mimeTypes
5
+ const addScripts=()=>{
6
+ const scripts=document.getElementsByTagName('script')
7
+ const check= Array.from(scripts).find(item=>item.src==='https://www.dropbox.com/static/api/2/dropins.js')
8
+ if(!check){
9
+ const dropboxscript = document.createElement('script')
10
+ dropboxscript.src = 'https://www.dropbox.com/static/api/2/dropins.js'
11
+ dropboxscript.dataset.appKey = '{{site.dropboxapikey}}'
12
+ dropboxscript.id='dropboxjs'
13
+ document.head.append(dropboxscript)
14
+ }
15
+ const checkgooglescript= Array.from(scripts).find(item=>item.src==='https://apis.google.com/js/api.js')
16
+ if(!checkgooglescript){
17
+ const googlescript = document.createElement('script')
18
+ googlescript.src = 'https://apis.google.com/js/api.js'
19
+ document.head.append(googlescript)
20
+ }
21
+ }
22
+ const developerKey = '{{site.developerKey}}'
23
+ const clientId ='{{site.clientId}}'
24
+ const appId = '{{site.appId}}'
25
+ const scope = [
26
+ 'https://www.googleapis.com/auth/drive.file',
27
+ 'https://www.googleapis.com/auth/drive.appdata',
28
+ ]
29
+ let pickerApiLoaded = false
30
+ let oauthToken
31
+ const loadPicker = (mimeType) => {
32
+ mimeTypes=mimeType
33
+ gapi.load('auth', { callback: onAuthApiLoad })
34
+ gapi.load('picker', { callback: onPickerApiLoad })
35
+ }
36
+ const onAuthApiLoad = () => {
37
+ window.gapi.auth.authorize(
38
+ {
39
+ client_id: clientId,
40
+ scope: scope,
41
+ immediate: false,
42
+ },
43
+ handleAuthResult
44
+ )
45
+ }
46
+ let onPickerApiLoad = () => {
47
+ pickerApiLoaded = true
48
+ createPicker()
49
+ }
50
+ const handleAuthResult = (authResult) => {
51
+ if (authResult && !authResult.error) {
52
+ oauthToken = authResult.access_token
53
+ createPicker()
54
+ }
55
+ }
56
+ const createPicker = () => {
57
+ if (pickerApiLoaded && oauthToken) {
58
+ const view = new google.picker.View(google.picker.ViewId.DOCS)
59
+ view.setMimeTypes(mimeTypes)
60
+ const picker = new google.picker.PickerBuilder()
61
+ .enableFeature(google.picker.Feature.NAV_HIDDEN)
62
+ .enableFeature(google.picker.Feature.MULTISELECT_ENABLED)
63
+ .setAppId(appId)
64
+ .setOAuthToken(oauthToken)
65
+ .addView(view)
66
+ .addView(new google.picker.DocsUploadView())
67
+ .setDeveloperKey(developerKey)
68
+ .setCallback(pickerCallback)
69
+ .build()
70
+ picker.setVisible(true)
71
+ }
72
+ }
73
+ const pickerCallback = async (data) => {
74
+ if (data.action == google.picker.Action.PICKED) {
75
+ showLoader()
76
+ const res = await fetch(
77
+ `https://www.googleapis.com/drive/v3/files/${data.docs[0].id}?alt=media`,
78
+ {
79
+ headers: {
80
+ Authorization: `Bearer ${oauthToken}`,
81
+ },
82
+ }
83
+ ).then((res) => res.blob())
84
+ let metadata = {
85
+ type: data.docs[0].mimeType,
86
+ }
87
+ let file = new File([res], data.docs[0].name, metadata)
88
+ closeLoader()
89
+ getFile(file)
90
+ }
91
+ }
92
+ function chooseFromDropbox(filemimes) {
93
+ Dropbox.choose({
94
+ success: async (files) => {
95
+ if (files.length < 0) {
96
+ return
97
+ }
98
+ var file = files[0]
99
+ const url = new URL(file.link)
100
+ showLoader()
101
+ const response = await fetch(url).then((res) => res.blob())
102
+ let metadata = {
103
+ type: response.type,
104
+ }
105
+ let newFile = new File([response], file.name, metadata)
106
+ closeLoader()
107
+ getDropBoxFile(newFile)
108
+ },
109
+ cancel: function () {},
110
+ linkType: 'direct',
111
+ multiselect: false,
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
+
@@ -92,7 +92,7 @@ function chooseFromDropbox() {
92
92
  if (files.length < 0) {
93
93
  return
94
94
  }
95
- var dropboxArray=data.docs.map(async(file)=>{
95
+ var dropboxArray=files.map(async(file)=>{
96
96
  showLoader()
97
97
  const url = new URL(file.link)
98
98
  const response = await fetch(url).then((res) => res.blob())
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-06 00:00:00.000000000 Z
11
+ date: 2021-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -291,9 +291,8 @@ files:
291
291
  - assets/images/rating.png
292
292
  - assets/instagram.svg
293
293
  - assets/js/TopScroll.js
294
- - assets/js/files/en/jpg.json
295
- - assets/js/files/en/png.json
296
294
  - assets/js/googledrive.js
295
+ - assets/js/googledriveinput.js
297
296
  - assets/js/manifest.json
298
297
  - assets/js/multiselect.js
299
298
  - assets/linkdin.svg
@@ -1,153 +0,0 @@
1
- {
2
- "Format": "Jpg file",
3
- "ShortName": "Jpg",
4
- "FullName": "Jpge",
5
- "Category": "Image",
6
- "Pros": "OXPS i.e. XML XML Description Definition File is the latest version of XPS file format developed by Microsoft and Ecma international in 2006. With PDF of Adobe Inc., XPS is a compact text format designed to maintain the integrity of the document. This file format is widely used in Windows8. Windows8 provides built-in applications that can be used to open and view documents in .oxps file format. Older versions of Windows do not have built-in tools and do not support OXPS file format. There are third-party softwares that help open an OXPS file.",
7
- "Cons": "OXPS i.e. XML XML Description Definition File is the latest version of XPS file format developed by Microsoft and Ecma international in 2006. With PDF of Adobe Inc., XPS is a compact text format designed to maintain the integrity of the document. This file format is widely used in Windows8. Windows8 provides built-in applications that can be used to open and view documents in .oxps file format. Older versions of Windows do not have built-in tools and do not support OXPS file format. There are third-party softwares that help open an OXPS file.",
8
- "CreatedbyName": "jpg",
9
- "CreatedbyLink": "jpg",
10
- "CreatedInYear": "2021",
11
- "BasicInformation": "OXPS i.e. XML XML Description Definition File is the latest version of XPS file format developed by Microsoft and Ecma international in 2006. With PDF of Adobe Inc., XPS is a compact text format designed to maintain the integrity of the document. This file format is widely used in Windows8. Windows8 provides built-in applications that can be used to open and view documents in .oxps file format. Older versions of Windows do not have built-in tools and do not support OXPS file format. There are third-party softwares that help open an OXPS file.",
12
- "DetailedInformation": "OXPS i.e. XML XML Description Definition File is the latest version of XPS file format developed by Microsoft and Ecma international in 2006. With PDF of Adobe Inc., XPS is a compact text format designed to maintain the integrity of the document. This file format is widely used in Windows8. Windows8 provides built-in applications that can be used to open and view documents in .oxps file format. Older versions of Windows do not have built-in tools and do not support OXPS file format. There are third-party softwares that help open an OXPS file.",
13
- "Softwaresused": [
14
- {
15
- "platform": "Windows",
16
- "softwares": [
17
- {
18
- "name": "Adobe Audition CC 2021",
19
- "link": "/",
20
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
21
- "type": "free"
22
- },
23
- {
24
- "name": "Adobe Audition CC 2021",
25
- "link": "/",
26
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
27
- "type": "paid"
28
- },
29
- {
30
- "name": "Adobe Audition CC 2021",
31
- "link": "/",
32
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
33
- "type": "freemium"
34
- }
35
- ]
36
- },
37
- {
38
- "platform": "Windows",
39
- "softwares": [
40
- {
41
- "name": "Adobe Audition CC 2021",
42
- "link": "/",
43
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
44
- "type": "free"
45
- },
46
- {
47
- "name": "Adobe Audition CC 2021",
48
- "link": "/",
49
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
50
- "type": "paid"
51
- },
52
- {
53
- "name": "Adobe Audition CC 2021",
54
- "link": "/",
55
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
56
- "type": "freemium"
57
- }
58
- ]
59
- },
60
- {
61
- "platform": "Windows",
62
- "softwares": [
63
- {
64
- "name": "Adobe Audition CC 2021",
65
- "link": "/",
66
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
67
- "type": "free"
68
- },
69
- {
70
- "name": "Adobe Audition CC 2021",
71
- "link": "/",
72
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
73
- "type": "paid"
74
- },
75
- {
76
- "name": "Adobe Audition CC 2021",
77
- "link": "/",
78
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
79
- "type": "freemium"
80
- }
81
- ]
82
- },
83
- {
84
- "platform": "Windows",
85
- "softwares": [
86
- {
87
- "name": "Adobe Audition CC 2021",
88
- "link": "/",
89
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
90
- "type": "free"
91
- },
92
- {
93
- "name": "Adobe Audition CC 2021",
94
- "link": "/",
95
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
96
- "type": "paid"
97
- },
98
- {
99
- "name": "Adobe Audition CC 2021",
100
- "link": "/",
101
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
102
- "type": "freemium"
103
- }
104
- ]
105
- },
106
- {
107
- "platform": "Windows",
108
- "softwares": [
109
- {
110
- "name": "Adobe Audition CC 2021",
111
- "link": "/",
112
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
113
- "type": "free"
114
- },
115
- {
116
- "name": "Adobe Audition CC 2021",
117
- "link": "/",
118
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
119
- "type": "paid"
120
- },
121
- {
122
- "name": "Adobe Audition CC 2021",
123
- "link": "/",
124
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
125
- "type": "freemium"
126
- }
127
- ]
128
- },
129
- {
130
- "platform": "Android",
131
- "softwares": [
132
- {
133
- "name": "Google",
134
- "link": "/",
135
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
136
- "type": "free"
137
- },
138
- {
139
- "name": "Apple",
140
- "link": "/",
141
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
142
- "type": "paid"
143
- },
144
- {
145
- "name": "Adobe Audition CC 2021",
146
- "link": "/",
147
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
148
- "type": "premium"
149
- }
150
- ]
151
- }
152
- ]
153
- }
@@ -1,61 +0,0 @@
1
- {
2
- "Format": "Png File",
3
- "ShortName": "Png",
4
- "FullName": "Png",
5
- "Category": "Png",
6
- "Pros": "OXPS i.e. XML XML Description Definition File is the latest version of XPS file format developed by Microsoft and Ecma international in 2006. With PDF of Adobe Inc., XPS is a compact text format designed to maintain the integrity of the document. This file format is widely used in Windows8. Windows8 provides built-in applications that can be used to open and view documents in .oxps file format. Older versions of Windows do not have built-in tools and do not support OXPS file format. There are third-party softwares that help open an OXPS file.",
7
- "Cons": "OXPS i.e. XML XML Description Definition File is the latest version of XPS file format developed by Microsoft and Ecma international in 2006. With PDF of Adobe Inc., XPS is a compact text format designed to maintain the integrity of the document. This file format is widely used in Windows8. Windows8 provides built-in applications that can be used to open and view documents in .oxps file format. Older versions of Windows do not have built-in tools and do not support OXPS file format. There are third-party softwares that help open an OXPS file.",
8
- "CreatedbyName": "Png",
9
- "CreatedbyLink": "Png",
10
- "CreatedInYear": "2021",
11
- "BasicInformation": "OXPS i.e. XML XML Description Definition File is the latest version of XPS file format developed by Microsoft and Ecma international in 2006. With PDF of Adobe Inc., XPS is a compact text format designed to maintain the integrity of the document. This file format is widely used in Windows8. Windows8 provides built-in applications that can be used to open and view documents in .oxps file format. Older versions of Windows do not have built-in tools and do not support OXPS file format. There are third-party softwares that help open an OXPS file.",
12
- "DetailedInformation": "OXPS i.e. XML XML Description Definition File is the latest version of XPS file format developed by Microsoft and Ecma international in 2006. With PDF of Adobe Inc., XPS is a compact text format designed to maintain the integrity of the document. This file format is widely used in Windows8. Windows8 provides built-in applications that can be used to open and view documents in .oxps file format. Older versions of Windows do not have built-in tools and do not support OXPS file format. There are third-party softwares that help open an OXPS file.",
13
- "Softwaresused": [
14
- {
15
- "platform": "Windows",
16
- "softwares": [
17
- {
18
- "name": "Adobe Audition CC 2021",
19
- "link": "/",
20
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
21
- "type": "free"
22
- },
23
- {
24
- "name": "Adobe Audition CC 2021",
25
- "link": "/",
26
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
27
- "type": "paid"
28
- },
29
- {
30
- "name": "Adobe Audition CC 2021",
31
- "link": "/",
32
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
33
- "type": "freemium"
34
- }
35
- ]
36
- },
37
- {
38
- "platform": "Android",
39
- "softwares": [
40
- {
41
- "name": "Google",
42
- "link": "/",
43
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
44
- "type": "free"
45
- },
46
- {
47
- "name": "Apple",
48
- "link": "/",
49
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
50
- "type": "paid"
51
- },
52
- {
53
- "name": "Adobe Audition CC 2021",
54
- "link": "/",
55
- "image": "https://cdn.fileinfo.com/img/icons/apps/128/mplayer_mplayer.png",
56
- "type": "premium"
57
- }
58
- ]
59
- }
60
- ]
61
- }