GithubHelp home page GithubHelp logo

admin's Introduction

QOR5

Build status

Official Website

QOR5 is a Go library to build web applications. We aim to accelerate the development speed and make the website highly customizable.

  • It prefers writing HTML in static typing Go language, rather than a certain type of template language, Not even go template.
  • It try to minify the needs to write any JavaScript/Typescript for building interactive web applications
  • It maximize the reusability of Components. since it uses Go to write components, You can abstract component very easy, and use component from a third party Go package is also like using normal Go packages.

Documentation

Documentation

admin's People

Contributors

azumads avatar bohrasd avatar chenxin0723 avatar cubxxw avatar dependabot[bot] avatar dorothyyzh avatar geckofu avatar haowan27 avatar hcsu avatar ibakuman avatar idealhack avatar jsthon avatar molon avatar moluuser avatar raven-chen avatar shenzhaoyan avatar sunfmin avatar transmigration-zhou avatar wtser avatar xuxinx avatar zealllot avatar zhangshanwen avatar zlvalien 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  avatar  avatar

admin's Issues

Custom find handler like qor4

Hello guys, I don't find any ways to custom find many handler before load list data of model. Because I want to preload some field before load to list data
currently i just see code like this:

mb.Listing().Field("UserId").Label("User").ComponentFunc(func(obj interface{}, field *presets.FieldContext, ctx *web.EventContext) h.HTMLComponent {
		user := entity.User{}
		cid, _ := field.Value(obj).(string)
		if err := res.Db.Where("id = ?", cid).First(&user).Error; err != nil {
		}
		return h.Td(h.Text(user.Name))
	})

but with this code, every row will be call a query, this make low performance, what happen if i has 100 row and in each row, i need data from lots of reference field. Hope some update for this, Thanks

创建自定义类型后,使用reflectutils.Set失效

使用如文档中: https://docs.qor5.com/presets-guide/editing-customizations.html

type MyFile string

type Product struct {
ID int
Title string
MainImage MyFile
abc string
}

其余基本不变,发现 reflectutils.Set(obj, “abc”, "aaaa") 并不生效。交换位置为
type Product struct {
ID int
Title string
abc string
MainImage MyFile
}
就成功了.
或者直接 reflectutils.Set(obj, “Title”, "aaaa") 也是成功的

这是我巧合了啥?

custom a html page for a menu

image I have a html file for dashboard page, is there any way to serve that file on the right panel like above image? I find it difficult to use htmlgo, because i integrate chartjs, table ,.. and I think it will take lots of time to convert html file to htmlgo. so i just want to use my available html file, Thanks

Remove usages of unlicensed code from reflectutils

Hi, qor5/admin uses reflectutils, which does not provide a licence file, notice or headers. Until sunfmin/reflectutils#1 is resolved qor5/admin should remove all usages of reflectutils code as it is copyrighted by @sunfmin and not properly licensed with a compatible open source licence, making qor5/admin not really redistributable nor used under the MIT licence.

elastic/go-licence-detector can be used to check dependency licences:

go list -m -json all | go-licence-detector -includeIndirect -depsOut=dependencies.asciidoc -noticeOut=NOTICE.txt

Field Except() function is not working.

I am trying to hide a few fields. There was an Expert() function available, and I used it. However, it's not working. How is it supposed to be used?

ce := b.Editing().Except("ID", "Key")

create multiple file field

hello guys, I have this model like this:
Product{
id uuid
images []string
...
}

how can I create a field upload multiple images and save path to images field? please give me some instruction or keyword for this

If the class is set to Select, the value cannot be obtained when updating! help

1700981172535

`
section := b.NewFieldsBuilder(presets.WRITE).Model(&svgs.SvgSection{}).Only(
"SvgsID",
&presets.FieldsSection{
Rows: [][]string{
{"Name"},
{"Class", "ClassValue"},
},
},
)

section.Field("Class").ComponentFunc(func(obj interface{}, field *presets.FieldContext, ctx *web.EventContext) h.HTMLComponent {
	return vx.VXAutocomplete().Label(field.Label).
		FieldName(field.Name).Reverse(false).Chips(false).Clearable(false).
		Value(fmt.Sprint(field.Value(obj))).
		Items(ClassSelectItemFilter()).Multiple(false).
		CacheItems(true).Outlined(true).Dense(true)
})

`

If the class is set to Select, the value cannot be obtained when updating! help me!

Sorting tables

Hi, your project looks very interesting and potentially a way for us to move off the original qor. However I could not find a way to sort tables by a column. Is that not supported yet?

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.