小编Byr*_*017的帖子

Chrome devtools 审核选项卡不显示

我的谷歌浏览器版本是83.0.4103.116 (Build oficial) (64 bits) (cohort: Stable)

但是审计选项卡不会显示在 devtools 上。

没有审计选项的 DevTools

知道如何启用审计选项卡吗?

audit google-chrome-devtools

19
推荐指数
1
解决办法
1万
查看次数

如何在 Storybook 6 中使用 css 模块

我的 css 模块无法与 Storybook 一起使用。没有任何错误,只是不起作用。我不明白\xc2\xb4t 出了什么问题。这是 Storybook 如何渲染按钮的图像:

\n

没有CSS的图像

\n

Button.js文件:

\n
import React from "react";\nimport PropTypes from "prop-types";\nimport style from "./styles.module.css";\n\nconst Button = ({ type, children }) => (\n  <button className={style.button}>{children}</button> \n);\n\nButton.propTypes = {\n  children: PropTypes.node.isRequired,\n  type: PropTypes.string,\n};\n\nButton.defaultProps = {\n  children: "primary",\n  type: "primary",\n};\n\nexport default Button;\n
Run Code Online (Sandbox Code Playgroud)\n

Button.stories.js文件:

\n
import React from "react";\nimport Button from "./Button";\n\nexport default {\n  component: Button,\n  title: "Test/Button",\n};\n\nconst Template = (args) => <Button {...args} />;\n\nexport const Primary = Template.bind({});\nPrimary.args = {\n  children: "xx …
Run Code Online (Sandbox Code Playgroud)

css-modules storybook

6
推荐指数
1
解决办法
7712
查看次数

在 ubuntu 桌面 22.04 上安装 pgadmin4-web

我已按照本教程安装pgadmin4-web:pgAdmin 4 (APT)。

\n

当我运行以下命令时

\n
sudo /usr/pgadmin4/bin/setup-web.sh \n
Run Code Online (Sandbox Code Playgroud)\n

我收到以下错误:

\n
\n

在基于 Debian 的平台上以 Web 模式设置 pgAdmin 4\xe2\x80\xa6 创建\n配置数据库\xe2\x80\xa6 /usr/pgadmin4/bin/setup-web.sh: 第 75 行:\n/usr/pgadmin4 /venv/bin/python3:没有这样的文件或目录设置服务器模式时出错。请检查上面的输出。

\n
\n

任何帮助将非常感谢。

\n

笔记:

\n

运行以下命令后(tutorial\xc2\xb4s 步骤二)

\n
sudo sh -c \'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update\'\n
Run Code Online (Sandbox Code Playgroud)\n

我必须将内部文件 /etc/apt/sources.list.d/pgadmin4.list 从 jammy 更改为 bionic

\n
from\ndeb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 main\nto\ndeb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 main\n
Run Code Online (Sandbox Code Playgroud)\n

ubuntu desktop pgadmin-4

6
推荐指数
2
解决办法
2万
查看次数

创建没有顶级语句的 Web API

我正在使用 dotnet cli 创建ASP.NET Core Web API

dotnet new webapi --output WebAPI;
Run Code Online (Sandbox Code Playgroud)

是否可以创建它但没有顶级语句?

.net dotnet-cli .net-6.0

5
推荐指数
1
解决办法
1059
查看次数

javax.faces.FacesException 无法找到 CDI BeanManager

我在用:

  • 目标运行时间:
  • 野蝇14.0
  • 动态网页模块版本
  • 4.0
  • 配置
  • 动态网络模块4.0
  • 爪哇1.8
  • JavaServer Faces 2.3
  • JSF 能力
  • JSF 配置文件:/WEB-INF/faces-config.xml
  • JSF Servlet 名称:Faces Servlet JSF
  • Servlet 类名称:javax.faces.webapp.FacesServlet
  • URL 映射模式:*.jsf

我有这个错误:

21:26:14,941 严重 [javax.enterprise.resource.webcontainer.jsf.config](ServerService 线程池 -- 76)部署期间出现严重错误::com.sun.faces.config.ConfigurationException:工厂'javax.faces.lifecycle .ClientWindowFactory' 未正确配置。在 com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:357) 在 com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:243) 在 com.sun.faces.config .ConfigManager.initialize(ConfigManager.java:443) 位于 com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:237) 位于 io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) 处io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:216) 在 io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:185) 在 io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1 .call(ServletRequestContextThreadSetupAction.java:42) 在 io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) 在 org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java :105) 在 org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502) 在 org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService) .java:1502) 在 org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502) 在 org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0 (UndertowDeploymentInfoService.java:1502) 在 io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:250) 在 org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96) 在 org. wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78) 在 java.util.concurrent.Executors$RunnableAdapter.call(未知来源) 在 java.util.concurrent.FutureTask.run(未知来源) org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) 在 org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985) 在 …

jsf wildfly

4
推荐指数
1
解决办法
1万
查看次数