git

安装node.js->npm->vue

冷暖自知 提交于 2021-02-12 03:35:27
我们研究vue时,首先操作的就是vue的引用,大部分人为了方便直接在页面上引用vue.js,但是一些大型网站还是比较喜欢用vue的npm命令来安装vue并使用,之前研究vue时,研究过使用npm安装的方式,但是总是没装成功,当时因为一些原因就放弃了继续研究下去,直接引用vue.js的方式来学习vue。这两天刚好有时间来继续研究下vue的npm安装方式,中间也遇上了一些问题。折腾了两天总算搞完了,现在回想起来,也挺容易的。下面就从安装node.js到npm的设置,再到vue的安装的步骤来描述下过程。 第一步: 使用npm的命令来安装vue,首先电脑得安装node.js,才能使用,先从官网下载node.js,官网地址: https://nodejs.org/en/ ,除了更改安装路径,其他的直接默认“下一步”就可以。 注意: node.js 最好安装到D盘,我本来是安装C盘,但是之前我电脑账户因为是公司的电脑,而当时我是非超级管理员的账户,node.js被我安装到了C盘,后面用npm的方式安装文件时,总是报错,提示没有权限。 当然如果你的账号是电脑的管理员, node.js装到C盘,但是在启动cmd前要用“使用管理员方式打开”,否则npm命令安装时可能会出现没有权限的错误。 个人是觉得装到D盘,可以避免一些错误,而且后期如果需要用npm安装一些插件啥的,或者是npm缓存

第二弹!安排!安利几个让你爽到爆的IDEA必备插件!

落爺英雄遲暮 提交于 2021-02-12 03:15:16
大家好,我是Guide哥。上一篇关于IDEA插件推荐的文章: 《第一弹!安排!安利10个让你爽到爆的IDEA必备插件!》 收到了很多小伙伴的好评,时隔大半个月左右,第二弹IDEA插件总算来啦! 下面推荐的插件都是我觉得比较实用的,不过你可以根据自己的需要,适当进行选择。另外 IDEA 自带的很多插件如果没有用到的话都可以关掉,这样可以提高IDEA的运行速度。 目录: Grep Console:控制台输出处理 Rainbow Brackets:彩虹🌈括号 Save Actions:优化保存操作 SequenceDiagram:一键生成时序图 Maven Helper:分析Maven项目的相关依赖 EasyCode:一键帮你生成所需代码 CheckStyle:代码格式检查 SonarLint:帮你优化代码 Lombok:帮你简化代码 CodeGlance:代码微型地图 Java Stream Debugger:Java8 Stream调试器 Git Commit Template:使用模板创建commit信息 其他常用插件推荐 Grep Console:控制台输出处理 可以说是必备的一个IDEA插件,非常实用! 这个插件主要的功能有两个: 1. 自定义设置控制台输出颜色 我们可以在设置中进行相关的配置: 配置完成之后的 log warn 的效果对比图如下: 2. 过滤控制台输出

UI5-培训篇-Fiori培训

狂风中的少年 提交于 2021-02-12 00:52:55
1.学习网站:  SAPUI5学习地址:   https://blog.csdn.net/stone0823/article/category/6650292/1?  SAPUI5文档:   https://sapui5.hana.ondemand.com/#/demoapps  SAP Build 模型:   https://developers.sap.com/tutorials/build-create-prototype.html  SAPUI5 Blogs:   https://blogs.sap.com/tags/500983881501772639608291559920477/   2.培训内容:  2.1初学导航    UI5-Fiori初学者导航  2.2环境搭建   Eclipse环境:    UI5-学习篇-1-Eclipse开发工具及环境搭建   Local-SAP WEB IDE:    UI5-学习篇-3-Local SAP WEB IDE下载   SCP-SAP WEB IDE:    UI5-学习篇-4-SCP-SAP WEB IDE登录  2.3SAP后端创建OData    UI5-学习篇-5-SAP创建OData服务-Structure UI5-学习篇-6-SAP创建OData服务-RFC     2.4UI5开发   Local-SAP

修改 windows terminal 和powershell中git提示信息

五迷三道 提交于 2021-02-12 00:14:10
原文链接: 修改 windows terminal 和powershell中git提示信息 安装: vscode 中使用新windows terminal 并修改主题 只保留分支名称即可, 不需要其他详细信息 这个powershell语法看着有点意思... 不过没啥精力搞这个了, 能用就行了...详细语法网上去查吧 还可以自定义提示, 去除多余的东西 来源: oschina 链接: https://my.oschina.net/ahaoboy/blog/4952386

vscode 中使用新windows terminal 并修改主题

浪子不回头ぞ 提交于 2021-02-11 22:39:15
目前没有找到能在vscode中使用的办法... 建议还是cmder吧, 不要瞎折腾了 还是gg好啊, 找了一会就找到了, 浪费我几个小时用bing和百度... 原文链接: vscode 中使用新windows terminal 并修改主题 https://docs.microsoft.com/zh-cn/windows/terminal/ https://github.com/microsoft/terminal https://iterm2colorschemes.com/ https://windowsterminalthemes.dev/ https://medium.com/analytics-vidhya/how-to-replace-external-terminal-in-visual-studio-code-with-the-new-windows-terminal-66e8460f2d31 cmder太慢了...所以想试试windows terminal 安装 直接在应用商店安装就行 这个看着是触摸板和手写板的问题 修改配置文件 ~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState\profiles.json 主题切换 https://github.com

翻译 | 《JavaScript Everywhere》第2章 项目简介(^_^)

不羁的心 提交于 2021-02-11 20:55:52
翻译 | 《JavaScript Everywhere》第2章 项目简介(^_^) 写在最前面 大家好呀,我是毛小悠,是一位前端开发工程师。正在翻译一本英文技术书籍。 为了提高大家的阅读体验,对语句的结构和内容略有调整。如果发现本文中有存在瑕疵的地方,或者您有任何意见或者建议,可以在评论区留言,或者加我的微信:code_maomao,欢迎相互沟通交流学习。 (σ゚∀゚)σ..:*☆哎哟不错哦 第2章 项目简介 想象一下,你站在当地的一家小餐馆的店铺前,决定在那里点一个三明治。服务员把你点的菜都写在一张纸上,然后把纸递给厨师。厨师阅读订单,使用单独的配料来制作三明治,并将三明治交给服务员。服务员会把三明治拿给你吃。如果你想要一些甜点,这个过程会再次重复。 应用程序编程接口(API)是一组规范,它允许一个计算机程序与另一个计算机程序进行交互。 Web API的工作方式与订购三明治的方式几乎相同。客户端请求一些数据,该数据通过超文本传输协议(HTTP)传输到Web服务器应用程序,Web服务器应用程序接受请求并处理数据,然后将数据通过HTTP发送给客户端。在本章中,我们将探讨Web API的广泛内容,并通过将starter API项目克隆到本地计算机上来开始我们的开发。但是,在进行此操作之前,让我们先探讨将要构建的应用程序的需求。 在本书中

Resolving Git conflicts in Visual Studio to have a commit after a bug at linking source and the server

我是研究僧i 提交于 2021-02-11 18:23:21
问题 Suddenly my local git repository bugged in a way that it didn't response to git commands, So with the help of a great professional here was able to reset, re-link it to the remote address at DevOps server. Link to the previous topic: Previous topic Now having some conflicts when trying to Cherry Commit my local repository changes to its DevOps location. Used this: git cherry-pick theversion now it seems pending. Please have a look at the below image: Don't know what should I do now. I want

Undo git push that hasn't merged

杀马特。学长 韩版系。学妹 提交于 2021-02-11 18:20:48
问题 I was attempting to resolve a conflict between master and my local branch using rebase. I resolved all conflicts and pushed. While checking to perform a pull request, I noticed there were commits I didn't recognize and want to undo the push. No merge or pull request made. What I did: $ git rebase master $ Resolved all conflicts $ git add --all $ git rebase --continue $ git push -u origin local_branch If I don't merge/pull request, what happens to the git push? 回答1: If I don't merge/pull

Recover files in git after reset --hard on added files(not committed!)

折月煮酒 提交于 2021-02-11 18:19:18
问题 I have few files which are never committed. I have added those files and by mistake i have executed "git reset --hard" i want to recover those files. please help me anyone. 回答1: This is not possible. These files are lost. 回答2: You can still save them if you've done nothing since. The git garbage collector is not run immediately. Try following this. 回答3: I have found the answer from stackoverflow only. from: How can I undo git reset --hard HEAD~1? ( :) this answer has got second last votes

Clone git repository via composer

梦想的初衷 提交于 2021-02-11 18:16:08
问题 guys! I simply want to clone repository via composer. But unfortunately - i can't. My composer.json looks like: { "repositories": [ { "type": "vcs", "url": "https://bitbucket.org/yuriikrevnyi/bitrix-teil-framework" } ], "require": { "mockery/mockery": "dev-master@dev", "phpunit/phpunit": "3.7.*" } } But its not going to work. So, couldnt you help me a little bit? And there is one more question. How to 'clone' private repo with composer? Lets say, we have same repo - https://bitbucket.org