Skip to content

Commit

Permalink
added Jalalian datepicker (shamsi) (#1460)
Browse files Browse the repository at this point in the history
* added datepicker option in setting page
jalalian datepicker component was added
translate files for datepicker updated

* dark mode bug fixed
  • Loading branch information
alirahimi818 committed Jan 2, 2024
1 parent 31e9734 commit c761995
Show file tree
Hide file tree
Showing 21 changed files with 1,389 additions and 3 deletions.
5 changes: 5 additions & 0 deletions sub/subService.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type SubService struct {
address string
showInfo bool
remarkModel string
datepicker string
inboundService service.InboundService
settingService service.SettingService
}
Expand All @@ -39,6 +40,10 @@ func (s *SubService) GetSubs(subId string, host string, showInfo bool) ([]string
if err != nil {
s.remarkModel = "-ieo"
}
s.datepicker, err = s.settingService.GetDatepicker()
if err != nil {
s.datepicker = "gregorian"
}
for _, inbound := range inbounds {
clients, err := s.inboundService.GetClients(inbound)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions web/assets/js/model/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class AllSetting {
this.expireDiff = "";
this.trafficDiff = "";
this.remarkModel = "-ieo";
this.datepicker = "gregorian";
this.tgBotEnable = false;
this.tgBotToken = "";
this.tgBotChatId = "";
Expand Down

0 comments on commit c761995

Please sign in to comment.