大前端
-
从 REST 迁移到 GraphQL 的一些思考与实践(响应嵌套的列表结构),参考 Shopify
1、参考:从 REST 迁移到 GraphQL 的一些思考与实践,参考 GitHub。在左侧为模板文件的顶级目录结构。针对每一个顶级目录,需要设置其是否允许新增文件。如图1 图1 2、本计划借鉴 Shopify 的 GraphQL 的响应结构,…
-
在 Laravel Telescope 中,页面一直处于 Scanning…
1、在 Laravel Telescope 中,页面一直处于 Scanning…。查看网络,Table ‘wshop_store.telescope_entries’ doesn’t exist。如图1 图1 2、运行 migrate 命令: PS E:/wwwroot/wshop/platfor…
-
在 Postman 中请求 Shopify’s GraphQL Admin API
1、参考:https://www.shuijingwanwq.com/2022/03/15/6129/ 。在 Altair GraphQL Client 中请求 Shopify’s GraphQL Admin API。最终决定再尝试一下使用 Postman。 2、参考:https://learning.postman.com/doc…
-
在 Altair GraphQL Client 中请求 Shopify’s GraphQL Admin API
1、参考:https://shopify.dev/api/admin-graphql#authentication ,所有 GraphQL Admin API 查询都需要有效的 Shopify 访问令牌。 2、打开后台 – 应用 – 开发应用 – 创建自定义应用。如图1 图1 …
-
在 PowerShell 中执行 curl 请求:Invoke-WebRequest 无法绑定参数“Headers”
1、通过 GET 请求对 GitHub GraphQL API 架构运行内省查询。在 PowerShell 中执行 curl 请求:Invoke-WebRequest 无法绑定参数“Headers”。如图1 图1 PS E:/wwwroot> curl -H "Authorization: bearer token&…
-
编写 Lighthouse 5 的自动化测试用例时,PhpStorm 不能够自动完成(无法找到要转到的声明)的解决
1、编写 Lighthouse 5 的自动化测试用例时,PhpStorm 不能够自动完成。点击 $response->assertJson 时,无法找到要转到的声明。方法 ‘assertJson’ 在 /Illuminate/Testing/TestResponse 中未找到。…
-
在 Laravel 6 中,报错:Illuminate / View / ViewException (E_ERROR) The Mix manifest does not exist.
1、在 Laravel 6 中,报错:Illuminate / View / ViewException (E_ERROR) The Mix manifest does not exist.。如图1 图1 [2022-02-16 17:15:55] local.ERROR: The Mix manifest does not exist. (View: E:/wwwroot…
-
在 Laravel 6 中,访问:https://wshop.local ,302 跳转至 https://xxx.xxx.xxx.top
1、在 Laravel 6 中,访问:https://wshop.local ,302 跳转至 https://xxx.xxx.xxx.top 。如图1 图1 2、在源代码中查找:xxx.xxx.xxx.top,未找到。且数据库已经将 xxx.xxx.xxx.top 全部替换为 wshop.local。 3、…
-
在 Laravel 6 中,执行命令:php artisan telescope:publish,报错:There are no commands defined in the “telescope” namespace.
1、在 Laravel 6 中,执行命令:php artisan telescope:publish,报错:There are no commands defined in the “telescope” namespace.。如图1 图1 PS E:/wwwroot/wshop/platform> php artisan tele…
-
在执行 php artisan package:discover –ansi 时,报错:Exception : Please install the Elasticsearch PHP client: elasticsearch/elasticsearch.
1、在执行 php artisan package:discover –ansi 时,报错:Exception : Please install the Elasticsearch PHP client: elasticsearch/elasticsearch.。如图1 图1 PS E:/wwwroot/wshop/platform> composer…