alamin655 commited on
Commit
5b4e7c7
2 Parent(s): 372a514 84e136b

Merge pull request #166 from xffxff/fix_search_button

Browse files

fix: ensure that the search functions properly when it is clicked

Files changed (3) hide show
  1. Cargo.lock +33 -26
  2. Cargo.toml +1 -1
  3. public/templates/search_bar.html +1 -1
Cargo.lock CHANGED
@@ -88,7 +88,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
88
  checksum = "e01ed3140b2f8d422c68afa1ed2e85d996ea619c988ac834d255db32138655cb"
89
  dependencies = [
90
  "quote 1.0.32",
91
- "syn 2.0.27",
92
  ]
93
 
94
  [[package]]
@@ -190,7 +190,7 @@ dependencies = [
190
  "serde_urlencoded 0.7.1",
191
  "smallvec 1.11.0",
192
  "socket2",
193
- "time 0.3.23",
194
  "url 2.4.0",
195
  ]
196
 
@@ -300,7 +300,7 @@ checksum = "cc6dde6e4ed435a4c1ee4e73592f5ba9da2151af10076cc04858746af9352d09"
300
  dependencies = [
301
  "proc-macro2 1.0.66",
302
  "quote 1.0.32",
303
- "syn 2.0.27",
304
  ]
305
 
306
  [[package]]
@@ -582,7 +582,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
582
  checksum = "e859cd57d0710d9e06c381b550c06e76992472a8c6d527aecd2fc673dcc231fb"
583
  dependencies = [
584
  "percent-encoding 2.3.0",
585
- "time 0.3.23",
586
  "version_check",
587
  ]
588
 
@@ -795,9 +795,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
795
  checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
796
  dependencies = [
797
  "quote 1.0.32",
798
- "syn 2.0.27",
799
  ]
800
 
 
 
 
 
 
 
801
  [[package]]
802
  name = "derive_more"
803
  version = "0.99.17"
@@ -1518,9 +1524,9 @@ checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
1518
 
1519
  [[package]]
1520
  name = "linux-raw-sys"
1521
- version = "0.4.3"
1522
  source = "registry+https://github.com/rust-lang/crates.io-index"
1523
- checksum = "09fc20d2ca12cb9f044c93e3bd6d32d523e6e2ec3db4f7b2939cd99026ecd3f0"
1524
 
1525
  [[package]]
1526
  name = "local-channel"
@@ -1816,7 +1822,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
1816
  dependencies = [
1817
  "proc-macro2 1.0.66",
1818
  "quote 1.0.32",
1819
- "syn 2.0.27",
1820
  ]
1821
 
1822
  [[package]]
@@ -1934,7 +1940,7 @@ dependencies = [
1934
  "pest_meta",
1935
  "proc-macro2 1.0.66",
1936
  "quote 1.0.32",
1937
- "syn 2.0.27",
1938
  ]
1939
 
1940
  [[package]]
@@ -2036,7 +2042,7 @@ dependencies = [
2036
  "phf_shared 0.11.2",
2037
  "proc-macro2 1.0.66",
2038
  "quote 1.0.32",
2039
- "syn 2.0.27",
2040
  ]
2041
 
2042
  [[package]]
@@ -2662,22 +2668,22 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
2662
 
2663
  [[package]]
2664
  name = "serde"
2665
- version = "1.0.178"
2666
  source = "registry+https://github.com/rust-lang/crates.io-index"
2667
- checksum = "60363bdd39a7be0266a520dab25fdc9241d2f987b08a01e01f0ec6d06a981348"
2668
  dependencies = [
2669
  "serde_derive",
2670
  ]
2671
 
2672
  [[package]]
2673
  name = "serde_derive"
2674
- version = "1.0.178"
2675
  source = "registry+https://github.com/rust-lang/crates.io-index"
2676
- checksum = "f28482318d6641454cb273da158647922d1be6b5a2fcc6165cd89ebdd7ed576b"
2677
  dependencies = [
2678
  "proc-macro2 1.0.66",
2679
  "quote 1.0.32",
2680
- "syn 2.0.27",
2681
  ]
2682
 
2683
  [[package]]
@@ -2906,9 +2912,9 @@ dependencies = [
2906
 
2907
  [[package]]
2908
  name = "syn"
2909
- version = "2.0.27"
2910
  source = "registry+https://github.com/rust-lang/crates.io-index"
2911
- checksum = "b60f673f44a8255b9c8c657daf66a596d435f2da81a555b06dc644d080ba45e0"
2912
  dependencies = [
2913
  "proc-macro2 1.0.66",
2914
  "quote 1.0.32",
@@ -2977,7 +2983,7 @@ checksum = "090198534930841fab3a5d1bb637cde49e339654e606195f8d9c76eeb081dc96"
2977
  dependencies = [
2978
  "proc-macro2 1.0.66",
2979
  "quote 1.0.32",
2980
- "syn 2.0.27",
2981
  ]
2982
 
2983
  [[package]]
@@ -2993,10 +2999,11 @@ dependencies = [
2993
 
2994
  [[package]]
2995
  name = "time"
2996
- version = "0.3.23"
2997
  source = "registry+https://github.com/rust-lang/crates.io-index"
2998
- checksum = "59e399c068f43a5d116fedaf73b203fa4f9c519f17e2b34f63221d3792f81446"
2999
  dependencies = [
 
3000
  "itoa 1.0.9",
3001
  "serde",
3002
  "time-core",
@@ -3011,9 +3018,9 @@ checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb"
3011
 
3012
  [[package]]
3013
  name = "time-macros"
3014
- version = "0.2.10"
3015
  source = "registry+https://github.com/rust-lang/crates.io-index"
3016
- checksum = "96ba15a897f3c86766b757e5ac7221554c6750054d74d5b28844fce5fb36a6c4"
3017
  dependencies = [
3018
  "time-core",
3019
  ]
@@ -3132,7 +3139,7 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e"
3132
  dependencies = [
3133
  "proc-macro2 1.0.66",
3134
  "quote 1.0.32",
3135
- "syn 2.0.27",
3136
  ]
3137
 
3138
  [[package]]
@@ -3454,7 +3461,7 @@ dependencies = [
3454
  "once_cell",
3455
  "proc-macro2 1.0.66",
3456
  "quote 1.0.32",
3457
- "syn 2.0.27",
3458
  "wasm-bindgen-shared",
3459
  ]
3460
 
@@ -3488,7 +3495,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
3488
  dependencies = [
3489
  "proc-macro2 1.0.66",
3490
  "quote 1.0.32",
3491
- "syn 2.0.27",
3492
  "wasm-bindgen-backend",
3493
  "wasm-bindgen-shared",
3494
  ]
@@ -3511,7 +3518,7 @@ dependencies = [
3511
 
3512
  [[package]]
3513
  name = "websurfx"
3514
- version = "0.15.2"
3515
  dependencies = [
3516
  "actix-files",
3517
  "actix-web",
 
88
  checksum = "e01ed3140b2f8d422c68afa1ed2e85d996ea619c988ac834d255db32138655cb"
89
  dependencies = [
90
  "quote 1.0.32",
91
+ "syn 2.0.28",
92
  ]
93
 
94
  [[package]]
 
190
  "serde_urlencoded 0.7.1",
191
  "smallvec 1.11.0",
192
  "socket2",
193
+ "time 0.3.24",
194
  "url 2.4.0",
195
  ]
196
 
 
300
  dependencies = [
301
  "proc-macro2 1.0.66",
302
  "quote 1.0.32",
303
+ "syn 2.0.28",
304
  ]
305
 
306
  [[package]]
 
582
  checksum = "e859cd57d0710d9e06c381b550c06e76992472a8c6d527aecd2fc673dcc231fb"
583
  dependencies = [
584
  "percent-encoding 2.3.0",
585
+ "time 0.3.24",
586
  "version_check",
587
  ]
588
 
 
795
  checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
796
  dependencies = [
797
  "quote 1.0.32",
798
+ "syn 2.0.28",
799
  ]
800
 
801
+ [[package]]
802
+ name = "deranged"
803
+ version = "0.3.6"
804
+ source = "registry+https://github.com/rust-lang/crates.io-index"
805
+ checksum = "8810e7e2cf385b1e9b50d68264908ec367ba642c96d02edfe61c39e88e2a3c01"
806
+
807
  [[package]]
808
  name = "derive_more"
809
  version = "0.99.17"
 
1524
 
1525
  [[package]]
1526
  name = "linux-raw-sys"
1527
+ version = "0.4.5"
1528
  source = "registry+https://github.com/rust-lang/crates.io-index"
1529
+ checksum = "57bcfdad1b858c2db7c38303a6d2ad4dfaf5eb53dfeb0910128b2c26d6158503"
1530
 
1531
  [[package]]
1532
  name = "local-channel"
 
1822
  dependencies = [
1823
  "proc-macro2 1.0.66",
1824
  "quote 1.0.32",
1825
+ "syn 2.0.28",
1826
  ]
1827
 
1828
  [[package]]
 
1940
  "pest_meta",
1941
  "proc-macro2 1.0.66",
1942
  "quote 1.0.32",
1943
+ "syn 2.0.28",
1944
  ]
1945
 
1946
  [[package]]
 
2042
  "phf_shared 0.11.2",
2043
  "proc-macro2 1.0.66",
2044
  "quote 1.0.32",
2045
+ "syn 2.0.28",
2046
  ]
2047
 
2048
  [[package]]
 
2668
 
2669
  [[package]]
2670
  name = "serde"
2671
+ version = "1.0.180"
2672
  source = "registry+https://github.com/rust-lang/crates.io-index"
2673
+ checksum = "0ea67f183f058fe88a4e3ec6e2788e003840893b91bac4559cabedd00863b3ed"
2674
  dependencies = [
2675
  "serde_derive",
2676
  ]
2677
 
2678
  [[package]]
2679
  name = "serde_derive"
2680
+ version = "1.0.180"
2681
  source = "registry+https://github.com/rust-lang/crates.io-index"
2682
+ checksum = "24e744d7782b686ab3b73267ef05697159cc0e5abbed3f47f9933165e5219036"
2683
  dependencies = [
2684
  "proc-macro2 1.0.66",
2685
  "quote 1.0.32",
2686
+ "syn 2.0.28",
2687
  ]
2688
 
2689
  [[package]]
 
2912
 
2913
  [[package]]
2914
  name = "syn"
2915
+ version = "2.0.28"
2916
  source = "registry+https://github.com/rust-lang/crates.io-index"
2917
+ checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567"
2918
  dependencies = [
2919
  "proc-macro2 1.0.66",
2920
  "quote 1.0.32",
 
2983
  dependencies = [
2984
  "proc-macro2 1.0.66",
2985
  "quote 1.0.32",
2986
+ "syn 2.0.28",
2987
  ]
2988
 
2989
  [[package]]
 
2999
 
3000
  [[package]]
3001
  name = "time"
3002
+ version = "0.3.24"
3003
  source = "registry+https://github.com/rust-lang/crates.io-index"
3004
+ checksum = "b79eabcd964882a646b3584543ccabeae7869e9ac32a46f6f22b7a5bd405308b"
3005
  dependencies = [
3006
+ "deranged",
3007
  "itoa 1.0.9",
3008
  "serde",
3009
  "time-core",
 
3018
 
3019
  [[package]]
3020
  name = "time-macros"
3021
+ version = "0.2.11"
3022
  source = "registry+https://github.com/rust-lang/crates.io-index"
3023
+ checksum = "eb71511c991639bb078fd5bf97757e03914361c48100d52878b8e52b46fb92cd"
3024
  dependencies = [
3025
  "time-core",
3026
  ]
 
3139
  dependencies = [
3140
  "proc-macro2 1.0.66",
3141
  "quote 1.0.32",
3142
+ "syn 2.0.28",
3143
  ]
3144
 
3145
  [[package]]
 
3461
  "once_cell",
3462
  "proc-macro2 1.0.66",
3463
  "quote 1.0.32",
3464
+ "syn 2.0.28",
3465
  "wasm-bindgen-shared",
3466
  ]
3467
 
 
3495
  dependencies = [
3496
  "proc-macro2 1.0.66",
3497
  "quote 1.0.32",
3498
+ "syn 2.0.28",
3499
  "wasm-bindgen-backend",
3500
  "wasm-bindgen-shared",
3501
  ]
 
3518
 
3519
  [[package]]
3520
  name = "websurfx"
3521
+ version = "0.15.3"
3522
  dependencies = [
3523
  "actix-files",
3524
  "actix-web",
Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
  [package]
2
  name = "websurfx"
3
- version = "0.15.2"
4
  edition = "2021"
5
  description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind."
6
  repository = "https://github.com/neon-mmd/websurfx"
 
1
  [package]
2
  name = "websurfx"
3
+ version = "0.15.3"
4
  edition = "2021"
5
  description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind."
6
  repository = "https://github.com/neon-mmd/websurfx"
public/templates/search_bar.html CHANGED
@@ -5,5 +5,5 @@
5
  value="{{this.pageQuery}}"
6
  placeholder="Type to search"
7
  />
8
- <button type="submit" onclick="search_web()">search</button>
9
  </div>
 
5
  value="{{this.pageQuery}}"
6
  placeholder="Type to search"
7
  />
8
+ <button type="submit" onclick="searchWeb()">search</button>
9
  </div>