chore: frappe-ui tree shaking changes
This commit is contained in:
Submodule frappe-ui updated: 204333c925...5e976a1753
@@ -33,7 +33,7 @@
|
|||||||
"dayjs": "^1.11.6",
|
"dayjs": "^1.11.6",
|
||||||
"dompurify": "^3.2.6",
|
"dompurify": "^3.2.6",
|
||||||
"feather-icons": "^4.28.0",
|
"feather-icons": "^4.28.0",
|
||||||
"frappe-ui": "^0.1.216",
|
"frappe-ui": "^0.1.220",
|
||||||
"highlight.js": "^11.11.1",
|
"highlight.js": "^11.11.1",
|
||||||
"lucide-vue-next": "^0.383.0",
|
"lucide-vue-next": "^0.383.0",
|
||||||
"markdown-it": "^14.0.0",
|
"markdown-it": "^14.0.0",
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
@import './assets/Inter/inter.css';
|
@import './assets/Inter/inter.css';
|
||||||
@import 'frappe-ui/src/style.css';
|
@import 'frappe-ui/style.css';
|
||||||
@import './styles/codemirror.css';
|
@import './styles/codemirror.css';
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
import { io } from 'socket.io-client'
|
import { io } from 'socket.io-client'
|
||||||
import { socketio_port } from '../../../../sites/common_site_config.json'
|
import { socketio_port } from '../../../../sites/common_site_config.json'
|
||||||
import { getCachedListResource } from 'frappe-ui/src/resources/listResource'
|
|
||||||
import { getCachedResource } from 'frappe-ui/src/resources/resources'
|
|
||||||
|
|
||||||
export function initSocket() {
|
export function initSocket() {
|
||||||
let host = window.location.hostname
|
let host = window.location.hostname
|
||||||
@@ -14,15 +12,5 @@ export function initSocket() {
|
|||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
reconnectionAttempts: 5,
|
reconnectionAttempts: 5,
|
||||||
})
|
})
|
||||||
socket.on('refetch_resource', (data) => {
|
|
||||||
if (data.cache_key) {
|
|
||||||
let resource =
|
|
||||||
getCachedResource(data.cache_key) ||
|
|
||||||
getCachedListResource(data.cache_key)
|
|
||||||
if (resource) {
|
|
||||||
resource.reload()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
return socket
|
return socket
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import frappeUIPreset from 'frappe-ui/src/tailwind/preset'
|
import frappeUIPreset from 'frappe-ui/tailwind'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
presets: [frappeUIPreset],
|
presets: [frappeUIPreset],
|
||||||
|
|||||||
@@ -2938,10 +2938,10 @@ fraction.js@^5.3.4:
|
|||||||
resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-5.3.4.tgz#8c0fcc6a9908262df4ed197427bdeef563e0699a"
|
resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-5.3.4.tgz#8c0fcc6a9908262df4ed197427bdeef563e0699a"
|
||||||
integrity sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==
|
integrity sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==
|
||||||
|
|
||||||
frappe-ui@^0.1.216:
|
frappe-ui@^0.1.220:
|
||||||
version "0.1.216"
|
version "0.1.220"
|
||||||
resolved "https://registry.yarnpkg.com/frappe-ui/-/frappe-ui-0.1.216.tgz#2297192cfcf13db7f9d4e374782fac1d42d54634"
|
resolved "https://registry.yarnpkg.com/frappe-ui/-/frappe-ui-0.1.220.tgz#689731816f8e97e8574bad797caf1f09de94cbad"
|
||||||
integrity sha512-rBBa5CZdRaYGllxU95uz1luVddZlZQXWxoPB7InxKqt5W/t7ZDqAudm6Crbo1kBy3Hp7VPNNbB43jVKJhlcrPQ==
|
integrity sha512-UOlndnoXxxpQM+FjlH7ybSXQgERxdDS0hZNyEna/GPUrm8xMTqKsgnWRqgyv1VLdv/qCDmQT/KNgo5TstHKLhg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@floating-ui/vue" "^1.1.6"
|
"@floating-ui/vue" "^1.1.6"
|
||||||
"@headlessui/vue" "^1.7.14"
|
"@headlessui/vue" "^1.7.14"
|
||||||
|
|||||||
@@ -1678,7 +1678,18 @@ def get_profile_details(username):
|
|||||||
details = frappe.db.get_value(
|
details = frappe.db.get_value(
|
||||||
"User",
|
"User",
|
||||||
{"username": username},
|
{"username": username},
|
||||||
["full_name", "name", "username", "user_image", "bio", "headline", "cover_image"],
|
[
|
||||||
|
"first_name",
|
||||||
|
"last_name",
|
||||||
|
"full_name",
|
||||||
|
"name",
|
||||||
|
"username",
|
||||||
|
"user_image",
|
||||||
|
"bio",
|
||||||
|
"headline",
|
||||||
|
"language",
|
||||||
|
"cover_image",
|
||||||
|
],
|
||||||
as_dict=True,
|
as_dict=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class LMSCertificate(Document):
|
|||||||
self.name = make_autoname("hash", self.doctype)
|
self.name = make_autoname("hash", self.doctype)
|
||||||
|
|
||||||
def after_insert(self):
|
def after_insert(self):
|
||||||
if not frappe.flags.in_test:
|
if not frappe.in_test:
|
||||||
outgoing_email_account = frappe.get_cached_value(
|
outgoing_email_account = frappe.get_cached_value(
|
||||||
"Email Account", {"default_outgoing": 1, "enable_outgoing": 1}, "name"
|
"Email Account", {"default_outgoing": 1, "enable_outgoing": 1}, "name"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user