caring-route 0.0.1 → 0.0.3

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/release.sh DELETED
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env sh
2
- ###
3
- # @Author: Wanko
4
- # @Date: 2023-02-16 18:41:13
5
- # @LastEditors: Wanko
6
- # @LastEditTime: 2023-04-27 18:31:24
7
- # @Description:
8
- ###
9
- set -e
10
-
11
- NODE_VERSION=$(node -p -e "require('./package.json').version")
12
- echo "Current version is $NODE_VERSION"
13
- echo "Enter release version: "
14
- read VERSION
15
- read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
16
- echo # (optional) move to a new line
17
- if [[ $REPLY =~ ^[Yy]$ ]]
18
- then
19
- echo "🕙 Releasing $VERSION ..."
20
-
21
- git ci "[build] $VERSION"
22
- npm version $VERSION --message "[release] $VERSION"
23
-
24
- cd src/caring-route
25
- npm version $VERSION --message "[release] $VERSION"
26
- cd ../../
27
- git push origin master
28
- cd src/caring-route
29
- npm publish
30
- fi
31
- echo "🎉 $VERSION version publish success"
package/src/App.vue DELETED
@@ -1,25 +0,0 @@
1
- <!--
2
- * @Author: Wanko
3
- * @Date: 2023-04-27 17:39:09
4
- * @LastEditors: Wanko
5
- * @LastEditTime: 2023-04-27 17:46:04
6
- * @Description:
7
- -->
8
- <script>
9
- export default {
10
- onLaunch () {
11
- console.log('App Launch')
12
- },
13
- onShow () {
14
- console.log('App Show')
15
- },
16
- onHide () {
17
- console.log('App Hide')
18
- },
19
- }
20
- </script>
21
-
22
- <style lang="scss">
23
- @import "caring-css/index.scss";
24
-
25
- </style>
@@ -1,12 +0,0 @@
1
- {
2
- "name": "caring-route",
3
- "version": "0.0.1",
4
- "description": "",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "keywords": [],
10
- "author": "风度万人迷",
11
- "license": "ISC"
12
- }
package/src/main.js DELETED
@@ -1,10 +0,0 @@
1
- import {
2
- createSSRApp
3
- } from "vue";
4
- import App from "./App.vue";
5
- export function createApp() {
6
- const app = createSSRApp(App);
7
- return {
8
- app,
9
- }
10
- }
package/src/manifest.json DELETED
@@ -1,72 +0,0 @@
1
- {
2
- "name" : "",
3
- "appid" : "",
4
- "description" : "",
5
- "versionName" : "1.0.0",
6
- "versionCode" : "100",
7
- "transformPx" : false,
8
- /* 5+App特有相关 */
9
- "app-plus" : {
10
- "usingComponents" : true,
11
- "nvueStyleCompiler" : "uni-app",
12
- "compilerVersion" : 3,
13
- "splashscreen" : {
14
- "alwaysShowBeforeRender" : true,
15
- "waiting" : true,
16
- "autoclose" : true,
17
- "delay" : 0
18
- },
19
- /* 模块配置 */
20
- "modules" : {},
21
- /* 应用发布信息 */
22
- "distribute" : {
23
- /* android打包配置 */
24
- "android" : {
25
- "permissions" : [
26
- "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
27
- "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
28
- "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
29
- "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
30
- "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
31
- "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
32
- "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
33
- "<uses-permission android:name=\"android.permission.CAMERA\"/>",
34
- "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
35
- "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
36
- "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
37
- "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
38
- "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
39
- "<uses-feature android:name=\"android.hardware.camera\"/>",
40
- "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
41
- ]
42
- },
43
- /* ios打包配置 */
44
- "ios" : {},
45
- /* SDK配置 */
46
- "sdkConfigs" : {}
47
- }
48
- },
49
- /* 快应用特有相关 */
50
- "quickapp" : {},
51
- /* 小程序特有相关 */
52
- "mp-weixin" : {
53
- "appid" : "",
54
- "setting" : {
55
- "urlCheck" : false
56
- },
57
- "usingComponents" : true
58
- },
59
- "mp-alipay" : {
60
- "usingComponents" : true
61
- },
62
- "mp-baidu" : {
63
- "usingComponents" : true
64
- },
65
- "mp-toutiao" : {
66
- "usingComponents" : true
67
- },
68
- "uniStatistics": {
69
- "enable": false
70
- },
71
- "vueVersion" : "3"
72
- }
@@ -1,14 +0,0 @@
1
- <!--
2
- * @Author: Wanko
3
- * @Date: 2023-04-27 17:39:09
4
- * @LastEditors: Wanko
5
- * @LastEditTime: 2023-04-27 17:47:43
6
- * @Description:
7
- -->
8
- <template>
9
- <view class="bg-f8 h-screen overflow-hidden">
10
- <view class="m">
11
- <button class="bg-purple-light">111</button>
12
- </view>
13
- </view>
14
- </template>
@@ -1,48 +0,0 @@
1
- <!--
2
- * @Author: Wanko
3
- * @Date: 2023-04-27 17:39:09
4
- * @LastEditors: Wanko
5
- * @LastEditTime: 2023-04-27 18:01:51
6
- * @Description:
7
- -->
8
- <template>
9
- <view class="bg-f8 h-screen overflow-hidden">
10
- <view class="m">
11
- <button class="bg-purple-light" @click="toRoute('/pages/index/two')">route('/pages/index/two')</button>
12
- </view>
13
- <view class="m">
14
- <button class="bg-purple-light" @click="toRoute1('/pages/index/two')">route.to('/pages/index/two')</button>
15
- </view>
16
- <view class="m">
17
- <button class="bg-purple-light" @click="toRoute2('/pages/index/three')">route.direct('/pages/index/three')</button>
18
- </view>
19
- <view class="m">
20
- <button class="bg-purple-light" @click="toRoute3('/pages/index/three')">route.launch('/pages/index/three')</button>
21
- </view>
22
- <view class="m">
23
- <button class="bg-purple-light" @click="toRoute1()">route.to('/pages/index/three')</button>
24
- </view>
25
- </view>
26
- </template>
27
- <script>
28
- import route from '@/caring-route/index.js'
29
- export default {
30
- methods: {
31
- // route(url)
32
- toRoute(url) {
33
- route(url)
34
- },
35
- // route.to(url)
36
- toRoute1(url) {
37
- route.to(url)
38
- },
39
- toRoute2(url) {
40
- route.direct(url)
41
- },
42
- toRoute3(url) {
43
- route.launch(url)
44
- }
45
-
46
- },
47
- }
48
- </script>
@@ -1,14 +0,0 @@
1
- <!--
2
- * @Author: Wanko
3
- * @Date: 2023-04-27 17:39:09
4
- * @LastEditors: Wanko
5
- * @LastEditTime: 2023-04-27 17:47:43
6
- * @Description:
7
- -->
8
- <template>
9
- <view class="bg-f8 h-screen overflow-hidden">
10
- <view class="m">
11
- <button class="bg-purple-light">111</button>
12
- </view>
13
- </view>
14
- </template>
@@ -1,14 +0,0 @@
1
- <!--
2
- * @Author: Wanko
3
- * @Date: 2023-04-27 17:39:09
4
- * @LastEditors: Wanko
5
- * @LastEditTime: 2023-04-27 17:53:33
6
- * @Description:
7
- -->
8
- <template>
9
- <view class="bg-f8 h-screen overflow-hidden">
10
- <view class="m">
11
- <button class="bg-purple-light">route.to</button>
12
- </view>
13
- </view>
14
- </template>
package/src/pages.json DELETED
@@ -1,34 +0,0 @@
1
- {
2
- "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
3
- {
4
- "path": "pages/index/index",
5
- "style": {
6
- "navigationBarTitleText": "一级页面"
7
- }
8
- },
9
- {
10
- "path": "pages/index/two",
11
- "style": {
12
- "navigationBarTitleText": "二级页面"
13
- }
14
- },
15
- {
16
- "path": "pages/index/three",
17
- "style": {
18
- "navigationBarTitleText": "三级页面"
19
- }
20
- },
21
- {
22
- "path": "pages/index/four",
23
- "style": {
24
- "navigationBarTitleText": "四级页面"
25
- }
26
- }
27
- ],
28
- "globalStyle": {
29
- "navigationBarTextStyle": "black",
30
- "navigationBarTitleText": "uni-app",
31
- "navigationBarBackgroundColor": "#fff",
32
- "backgroundColor": "#fff"
33
- }
34
- }
package/src/uni.scss DELETED
@@ -1,76 +0,0 @@
1
- /**
2
- * 这里是uni-app内置的常用样式变量
3
- *
4
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
5
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
6
- *
7
- */
8
-
9
- /**
10
- * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
11
- *
12
- * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
13
- */
14
-
15
- /* 颜色变量 */
16
-
17
- /* 行为相关颜色 */
18
- $uni-color-primary: #007aff;
19
- $uni-color-success: #4cd964;
20
- $uni-color-warning: #f0ad4e;
21
- $uni-color-error: #dd524d;
22
-
23
- /* 文字基本颜色 */
24
- $uni-text-color:#333;//基本色
25
- $uni-text-color-inverse:#fff;//反色
26
- $uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息
27
- $uni-text-color-placeholder: #808080;
28
- $uni-text-color-disable:#c0c0c0;
29
-
30
- /* 背景颜色 */
31
- $uni-bg-color:#ffffff;
32
- $uni-bg-color-grey:#f8f8f8;
33
- $uni-bg-color-hover:#f1f1f1;//点击状态颜色
34
- $uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色
35
-
36
- /* 边框颜色 */
37
- $uni-border-color:#c8c7cc;
38
-
39
- /* 尺寸变量 */
40
-
41
- /* 文字尺寸 */
42
- $uni-font-size-sm:24rpx;
43
- $uni-font-size-base:28rpx;
44
- $uni-font-size-lg:32rpx;
45
-
46
- /* 图片尺寸 */
47
- $uni-img-size-sm:40rpx;
48
- $uni-img-size-base:52rpx;
49
- $uni-img-size-lg:80rpx;
50
-
51
- /* Border Radius */
52
- $uni-border-radius-sm: 4rpx;
53
- $uni-border-radius-base: 6rpx;
54
- $uni-border-radius-lg: 12rpx;
55
- $uni-border-radius-circle: 50%;
56
-
57
- /* 水平间距 */
58
- $uni-spacing-row-sm: 10px;
59
- $uni-spacing-row-base: 20rpx;
60
- $uni-spacing-row-lg: 30rpx;
61
-
62
- /* 垂直间距 */
63
- $uni-spacing-col-sm: 8rpx;
64
- $uni-spacing-col-base: 16rpx;
65
- $uni-spacing-col-lg: 24rpx;
66
-
67
- /* 透明度 */
68
- $uni-opacity-disabled: 0.3; // 组件禁用态的透明度
69
-
70
- /* 文章场景相关 */
71
- $uni-color-title: #2C405A; // 文章标题颜色
72
- $uni-font-size-title:40rpx;
73
- $uni-color-subtitle: #555555; // 二级标题颜色
74
- $uni-font-size-subtitle:36rpx;
75
- $uni-color-paragraph: #3F536E; // 文章段落颜色
76
- $uni-font-size-paragraph:30rpx;
package/vite.config.js DELETED
@@ -1,8 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import uni from '@dcloudio/vite-plugin-uni'
3
- // https://vitejs.dev/config/
4
- export default defineConfig({
5
- plugins: [
6
- uni(),
7
- ],
8
- })
File without changes
File without changes