Skip to content

Commit

Permalink
TAB-481 adding cordova and capacitator
Browse files Browse the repository at this point in the history
  • Loading branch information
evandor committed Jan 24, 2024
1 parent 3aebb87 commit 6832f41
Show file tree
Hide file tree
Showing 9 changed files with 1,290 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ node_modules
/src-cordova/www

# Capacitor related directories and files
/src-capacitor/www
/src-capacitor/node_modules
/src-capacitor2/www
/src-capacitor2/node_modules

# BEX related directories and files
/src-bex/www
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"dev ssr": "quasar dev -m ssr",
"dev stage prod": "stage=production quasar dev -m bex",
"dev electron": "quasar dev -m electron",
"dev capacitor": "quasar dev -m capacitor -T ios",
"dev cordova": "quasar dev -m cordova -T ios",
"build": "quasar build -m bex",
"build pwa": "quasar build -m pwa",
"build electron": "quasar build -m electron",
Expand Down
7 changes: 5 additions & 2 deletions quasar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,13 @@ module.exports = configure(function (ctx) {

// !== MIT
extendViteConf (viteConf) {
if ((ctx.mode.spa || ctx.mode.pwa || ctx.mode.electron) && viteConf && viteConf.mode === "development") {
console.log("******",ctx.mode)
//if ((ctx.mode.spa || ctx.mode.pwa || ctx.mode.electron) && viteConf && viteConf.mode === "development") {
// https://dev.to/richardbray/how-to-fix-the-referenceerror-global-is-not-defined-error-in-sveltekitvite-2i49
viteConf.define.global = {}
}
//https://stackoverflow.com/questions/77061323/error-pouchdb-on-vite-referenceerror-global-is-not-defined
//viteConf.define.window.global = window.global
//}
viteConf.define.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = 'false'
},
// viteVuePluginOptions: {},
Expand Down
26 changes: 26 additions & 0 deletions src-cordova/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

.DS_Store

# Generated by package manager
node_modules/

# Generated by Cordova
/plugins/
/platforms/
15 changes: 15 additions & 0 deletions src-cordova/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.skysail.tabsets.cordova" version="0.4.10" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Tabsets - Manage Tabs and Bookmarks with Ease</name>
<description>Bookmarks next generation - Tabsets is a browser extension which helps you get your links really organized.</description>
<author email="[email protected]" href="https://cordova.apache.org">
Apache Cordova Team
</author>
<content src="index.html" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<platform name="ios">
<preference name="ScrollEnabled" value="true" />
</platform>
<allow-navigation href="about:*" />
</widget>
Loading

0 comments on commit 6832f41

Please sign in to comment.