Giter Site home page Giter Site logo

kala888 / tixwork Goto Github PK

View Code? Open in Web Editor NEW
297.0 12.0 59.0 29.42 MB

一个低码解决方案

License: Other

JavaScript 14.52% HTML 0.02% TypeScript 33.88% Less 4.00% Shell 0.15% Starlark 0.06% Java 44.06% Ruby 0.09% Objective-C 0.28% Rust 0.01% CSS 0.07% Dockerfile 0.02% FreeMarker 2.84%
taro3 lowcode java mybatis mybatis-plus react react-native typescript springboot3

tixwork's Introduction

原来nice-router-taro项目已迁移到tixwork/tixwork-taro

项目Tixwork

版本3.0.5

项目结构

目前系统包含6个大的模块。

模块 说明
datav-app 大屏用App
datav-web 数据大屏应用
models 模型定义
tixwork-service 基于Springboot的后台应用
tixwork-taro 基于taro的小程序跨多端移动框架
tixwork-ui 基于Antd的中台框架

如何开始新的项目"demo"

1.准备代码
echo "1. copy files"
cp -R -H tixwork demo
cd demo
git checkout master
rm -rf .git

echo "2. should create project at github"

echo "3. init project"
git init
git add *.* 
git commit -am "first commit"

echo "4. push code to remote"
git remote add origin [email protected]:kala888/demo.git
git push

echo "5.add code gen base remote: tixwork "
git remote add tixwork [email protected]:kala888/tixwork.git
git fetch tixwork
git merge --allow-unrelated-histories tixwork/dev
2.修改模型并生成

2.1. 在tixwork-generator目录中建立软连接

cd tixwork-generator/code-service/models
ln -s ~/tiandtech/demo/models demo

2.2 修改code-service/models/demo/index.xml 模型

2.3 修改项目属性,clientid, logo, 数据库schema TODO

3.本地开发测试

1.启动redis和pgsql

cd tixwork-service/docker
docker-compose -f docker-compose-dev.yml up -d  

2.启动后台服务

cd tixwork-service/tixwork-api
gradle clean bR 

3.启动前台服务

cd tixwork-ui
yarn && yarn start

4.访问

http://localhost:8000
tixwork/tixwork998
4.准备远程部署
  1. 修改script/init-remote-server.sh
  2. 处理nginx和端口 TODO
  3. 处理sync-jar TODO
  4. 处理sync-web TODO
5.远程部署
如何merge remote code
echo " merge code"
git fetch tixwork
git merge --allow-unrelated-histories tixwork/dev
 ## git merge tixwork/dev
感谢Jetbrains提供IDE支持

tixwork's People

Contributors

ellischen avatar kala888 avatar pingannetbar avatar sixwizard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tixwork's Issues

增加icon无效

image

后端返回数据,前端通过GenericPageBase渲染, taro_ui里面的icon未生效
image

restart app codepush will rollback

update-checker
在APP 首次安装, 执行热更新以后,再杀掉app,再 进入,会再次检查热更新吗

  const update = await codePush.checkForUpdate()
  const info = await codePush.getUpdateMetadata()

编译成H5报错

 Failed to compile.

./.temp/app.js
Module build failed (from ./node_modules/@tarojs/webpack-runner/node_modules/babel-loader/lib/index.js):
C:/workspace/lab/eva-template/wxapp/.temp/app.js: Duplicate declaration "View"

  17 |
  18 | import Nerv from 'nervjs';
> 19 | import { View, Tabbar, TabbarContainer, TabbarPanel } from '@tarojs/components';
     |          ^
  20 | import { Router, createHistory, mountApis } from '@tarojs/router';
  21 | Taro.initPxTransform({
  22 |   "designWidth": 750,

Cannot read property 'tap' taro

参照开发手册上来运行,微信小程序开发工具提示Cannot read property 'tap' taro,有底部的导航,页面没有内容。h5页面底部没有导航栏和页面内容。

h5的情况下 获取不到header

我打的日志来看 似乎是trao.request 返回的resp中就没有, 但是浏览器控制台返回的信息头里面有, 返回的x-class这些都获取不到, 小程序模式没有问题
image
image

请问 NavigationService.ajax 如何请求小程序的云函数?有 demo 吗?

看代码请求后台 url 是用NavigationService.ajax:
`componentDidMount() {

   NavigationService.ajax(Config.api.FooterHome, {}, {
     onSuccess: (resp) => {
       console.log(“”fetch data from backend,resp data:“”, resp)
       this.setState({
         pageTitle: resp.pageTitle,
       })
     },
   })
 }`

api url 的定义:
`
api: {

FooterHome: "viewHomepage/,
FooterMe: 'customerViewDashboard/',
Login: 'clientLogin/',
VerifyCode: 'sendVerifyCode/:mobile/',
OSSToken: 'customGetOssToken/',
Logout: 'logout/',

},
`

请问:我想要请求的后台是微信的云函数,该如何调用?:
`
Taro.cloud.callFunction({

name: “add”,
data: {
x: 1,
y: 2,
}
}).then(res => {
// output: res.result === 3
}).catch(err => {
// handle error
})
`

跳转问题

如果第一次进入的页面不是首页,一切都正常
如果第一次进入的页面是首页, 然后点击进去我的页面, 我的页面有useEffect, 去请求NavigationService.view('me')个人信息, 通过日志打印 显示先进入我的页面, 然后闪了一下,进入到首页然后又回到我的页面, 而且第一次进入首页和闪回去到首页的时候 首页的useEffect都执行了, 下面是从点击我的开始的日志, "到页面了"是在useEffect里面执行的, 一直没看出原因, 按理说就算跳回去也不应该第二次执行useEffect, 这种情况只有第一次进入的页面是首页会出现, 通过调试发现只有到其他页面去执行useEffect里面的NavigationService请求时才会出现, 而且是后端返回有xclass才会出现
image

image

项目进度更新

  • [ ✅ ] 开源中台UI
  • [ ✅ ] 开源小程序
  • [ ✅ ] 开源数据大屏
  • [ ✅ ] 开源后台service(2024-02))
  • [ X ] 开源生成器(2024-04)
  • [ X ] 开源软著生成器(待定)

希望在listof 页面 增加一种filter, 用于应对过滤状态太多的情况

目前的listof页面的filter效果如下

image

当过滤状态过多的,要一直往右滑,很麻烦

例如我做的企业交易流水页面如下
image
想根据项目或者交易对方来过滤,由于项目或交易方是持续增加的,当多到一定程度的时候,就不好用了
因此想要类似微信的这种filter
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.