Skip to content

Commit

Permalink
remove jssdk
Browse files Browse the repository at this point in the history
  • Loading branch information
zrcoder committed Jan 7, 2025
1 parent a0d41d0 commit e423e2b
Show file tree
Hide file tree
Showing 112 changed files with 27 additions and 85,105 deletions.
27 changes: 20 additions & 7 deletions conf/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package conf

import (
"net/http"

"github.com/zrcoder/amisgo/internal/template"
)

Expand Down Expand Up @@ -28,16 +30,20 @@ const (

// Config holds all configuration options for the application
type Config struct {
Theme Theme
Lang Lang
Title string
Icon string
CustomCSS string
CustomJS string
UseLocalSDK bool
Theme Theme
Lang Lang
Title string
Icon string
CustomCSS string
CustomJS string
LocalSdkFS http.FileSystem
template.Template
}

func (c *Config) UseLocalSDK() bool {
return c.LocalSdkFS != nil
}

// Default returns a new Config instance with default settings
func Default() *Config {
return &Config{
Expand Down Expand Up @@ -99,3 +105,10 @@ func WithCustomJS(customJS string) Option {
c.CustomJS = customJS
}
}

// WithLocalSdk sets the local SDK file system
func WithLocalSdk(fs http.FileSystem) Option {
return func(c *Config) {
c.LocalSdkFS = fs
}
}
353 changes: 0 additions & 353 deletions jssdk/ang-ie11.css

This file was deleted.

292 changes: 0 additions & 292 deletions jssdk/ang.css

This file was deleted.

352 changes: 0 additions & 352 deletions jssdk/antd-ie11.css

This file was deleted.

291 changes: 0 additions & 291 deletions jssdk/antd.css

This file was deleted.

100 changes: 0 additions & 100 deletions jssdk/barcode.js

This file was deleted.

119 changes: 0 additions & 119 deletions jssdk/charts.js

This file was deleted.

16 changes: 0 additions & 16 deletions jssdk/codemirror.js

This file was deleted.

130 changes: 0 additions & 130 deletions jssdk/color-picker.js

This file was deleted.

14 changes: 0 additions & 14 deletions jssdk/cropperjs.js

This file was deleted.

352 changes: 0 additions & 352 deletions jssdk/cxd-ie11.css

This file was deleted.

291 changes: 0 additions & 291 deletions jssdk/cxd.css

This file was deleted.

352 changes: 0 additions & 352 deletions jssdk/dark-ie11.css

This file was deleted.

291 changes: 0 additions & 291 deletions jssdk/dark.css

This file was deleted.

49 changes: 0 additions & 49 deletions jssdk/exceljs.js

This file was deleted.

2 changes: 0 additions & 2 deletions jssdk/fomula-doc.js

This file was deleted.

10 changes: 0 additions & 10 deletions jssdk/fs.go

This file was deleted.

Loading

0 comments on commit e423e2b

Please sign in to comment.