@fto-consult/expo-ui 6.32.9 → 6.32.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel.config.alias.js +4 -0
- package/babel.config.js +0 -21
- package/bin/update-appex-chart.js +23 -0
- package/package.json +7 -3
- package/src/app.config.json +31 -0
- package/src/components/Chart/appexChart/appexChart.html +24 -0
- package/src/realm/index.js +5 -0
- package/src/realm/react/index.js +1 -0
- package/src/screens/Help/openLibraries.js +1 -1
package/babel.config.alias.js
CHANGED
|
@@ -123,5 +123,9 @@ module.exports = (opts)=>{
|
|
|
123
123
|
}
|
|
124
124
|
///on sauvegarde les chemins des fichiers utiles, qui seront utilisées par la variable electron plus tard
|
|
125
125
|
writeFile(path.resolve(dir,"electron","paths.json"),JSON.stringify(electronPaths));
|
|
126
|
+
r["$erealm"] = path.resolve(expo,'realm');
|
|
127
|
+
if(!r.$realm){
|
|
128
|
+
r.$realm = r.$erealm;
|
|
129
|
+
}
|
|
126
130
|
return r;
|
|
127
131
|
}
|
package/babel.config.js
CHANGED
|
@@ -47,27 +47,6 @@ module.exports = function(api,opts) {
|
|
|
47
47
|
writeFile(path.resolve(structsDataPath,"getStructData.js"),getStructDataJSContent);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
//generating appex js file
|
|
52
|
-
const eAppex = $ecomponents && path.resolve($ecomponents,"Chart","appexChart");
|
|
53
|
-
if(eAppex && fs.existsSync(eAppex)){
|
|
54
|
-
const appexPathHtml = path.resolve(eAppex,"appexChart.html");
|
|
55
|
-
const appexDistPath = path.resolve(nodeModulesPath,"apexcharts","dist","apexcharts.min.js");
|
|
56
|
-
if(fs.existsSync(appexDistPath)){
|
|
57
|
-
const jsContent = fs.readFileSync(appexDistPath, 'utf8')
|
|
58
|
-
//overite appex chart html file
|
|
59
|
-
writeFile(appexPathHtml,`
|
|
60
|
-
<html>
|
|
61
|
-
<head>
|
|
62
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
63
|
-
<script>${jsContent}</script>
|
|
64
|
-
</head>
|
|
65
|
-
<body>
|
|
66
|
-
</body>
|
|
67
|
-
</html>
|
|
68
|
-
`);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
50
|
}
|
|
72
51
|
|
|
73
52
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const fs = require("fs");
|
|
3
|
+
const {writeFile} = require("../electron/utils")
|
|
4
|
+
const $ecomponents = path.resolve("./src/components");
|
|
5
|
+
const eAppex = path.resolve($ecomponents,"Chart","appexChart");
|
|
6
|
+
const cwdApexChart = path.resolve(process.cwd(),"node_modules","apexcharts","dist","apexcharts.min.js");
|
|
7
|
+
const localApexChart = path.resolve("node_modules","apexcharts","dist","apexcharts.min.js");
|
|
8
|
+
const appexDistPath = fs.existsSync(cwdApexChart)? cwdApexChart : fs.existsSync(localApexChart)? localApexChart : null;
|
|
9
|
+
if(appexDistPath && eAppex && fs.existsSync(eAppex)){
|
|
10
|
+
const appexPathHtml = path.resolve(eAppex,"appexChart.html");
|
|
11
|
+
const jsContent = fs.readFileSync(appexDistPath, 'utf8')
|
|
12
|
+
writeFile(appexPathHtml,`
|
|
13
|
+
<html>
|
|
14
|
+
<head>
|
|
15
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
16
|
+
<script>${jsContent}</script>
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
21
|
+
`);
|
|
22
|
+
console.log("native apexChart updated");
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "6.32.
|
|
3
|
+
"version": "6.32.11",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -41,9 +41,11 @@
|
|
|
41
41
|
"find-licenses": "node ./find-licenses.js",
|
|
42
42
|
"fix-dependencies": "expo-cli doctor --fix-dependencies",
|
|
43
43
|
"expo-fix": "npx expo install --fix",
|
|
44
|
+
"update-apexchart": "node ./bin/update-appex-chart.js",
|
|
45
|
+
"update-appexchart": "npm run update-apexchart",
|
|
44
46
|
"delete-node-modules": "rimraf ./**/node_modules",
|
|
45
47
|
"modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'",
|
|
46
|
-
"update": "npm i expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest fs-extra@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @fto-consult/common@latest react-native-blob-util react-native-gesture-handler@latest react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@latest react-native-paper-dates@latest @react-navigation/native@latest @react-navigation/native-stack@latest react-virtuoso@latest tippy.js@latest websql@latest xlsx@latest && npx expo install --fix"
|
|
48
|
+
"update": "npm i expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest fs-extra@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @fto-consult/common@latest react-native-blob-util react-native-gesture-handler@latest react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@latest react-native-paper-dates@latest @react-navigation/native@latest @react-navigation/native-stack@latest react-virtuoso@latest tippy.js@latest websql@latest xlsx@latest && npx expo install --fix && npm run update-apexchart"
|
|
47
49
|
},
|
|
48
50
|
"bin": {
|
|
49
51
|
"expo-ui": "./bin/index.js"
|
|
@@ -68,7 +70,7 @@
|
|
|
68
70
|
"@expo/html-elements": "^0.5.1",
|
|
69
71
|
"@expo/vector-icons": "^13.0.0",
|
|
70
72
|
"@faker-js/faker": "^8.0.2",
|
|
71
|
-
"@fto-consult/common": "^3.
|
|
73
|
+
"@fto-consult/common": "^3.34.0",
|
|
72
74
|
"@pchmn/expo-material3-theme": "^1.3.1",
|
|
73
75
|
"@react-native-async-storage/async-storage": "1.18.2",
|
|
74
76
|
"@react-native-community/datetimepicker": "7.2.0",
|
|
@@ -76,6 +78,7 @@
|
|
|
76
78
|
"@react-native/assets-registry": "^0.72.0",
|
|
77
79
|
"@react-navigation/native": "^6.1.7",
|
|
78
80
|
"@react-navigation/native-stack": "^6.9.13",
|
|
81
|
+
"@realm/react": "^0.6.0",
|
|
79
82
|
"@shopify/flash-list": "1.4.3",
|
|
80
83
|
"apexcharts": "^3.42.0",
|
|
81
84
|
"expo": "^49.0.9",
|
|
@@ -113,6 +116,7 @@
|
|
|
113
116
|
"react-native-web": "~0.19.6",
|
|
114
117
|
"react-native-webview": "13.2.2",
|
|
115
118
|
"react-virtuoso": "^4.5.1",
|
|
119
|
+
"realm": "^12.1.0",
|
|
116
120
|
"sharp-cli": "^4.1.1",
|
|
117
121
|
"tippy.js": "^6.3.7",
|
|
118
122
|
"websql": "^2.0.3",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SALITE",
|
|
3
|
+
"version": "7.0.0",
|
|
4
|
+
"description": "Logiciel de gestion commerciale pour PME",
|
|
5
|
+
"realeaseDateStr": "1er Juin 2021",
|
|
6
|
+
"releaseDate": "2020-05-23",
|
|
7
|
+
"devMail": "saliteapp@gmail.com",
|
|
8
|
+
"devWebsite": "http://fto-consulting.com/salite/",
|
|
9
|
+
"copyRight": "firsto consulting@Jan 2020",
|
|
10
|
+
"id": "com.ftc.apps.salite7",
|
|
11
|
+
"pouchdbNamePrefix": "com.ftc.apps.slite-",
|
|
12
|
+
"includeFieldsInDatagridFetchOptions": false,
|
|
13
|
+
"feeds": {
|
|
14
|
+
"VIDEOS": {
|
|
15
|
+
"link": "http://fto-consulting.com/salite/feeds",
|
|
16
|
+
"label": "Bibliothèque vidéo",
|
|
17
|
+
"provider": "",
|
|
18
|
+
"icon": "file-video"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"theme": {
|
|
22
|
+
"light": {
|
|
23
|
+
"primary": "#0073B1",
|
|
24
|
+
"secondary": "#EC008C",
|
|
25
|
+
"primaryOnSurface": "#0073B1",
|
|
26
|
+
"secondaryOnSurface": "#EC008C"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"author": "@fto-consulting",
|
|
30
|
+
"license": "ISC"
|
|
31
|
+
}
|